Commit 50353b07 authored by Malsha Jayakody's avatar Malsha Jayakody

change api

parent 66491651
...@@ -45,7 +45,7 @@ const QuestionInEnglishPage = ({navigation, route}) => { ...@@ -45,7 +45,7 @@ const QuestionInEnglishPage = ({navigation, route}) => {
const loadData = () => { const loadData = () => {
axios axios
.get('http://16.16.97.48/api/quiz/all_english') .get('http://emidwife-api.onrender.com/api/quiz/all_english')
.then(response => { .then(response => {
setQuestions(response.data.data); setQuestions(response.data.data);
setIsLoading(false); setIsLoading(false);
......
...@@ -45,7 +45,7 @@ const QuestionInSinhalaPage = ({navigation, route}) => { ...@@ -45,7 +45,7 @@ const QuestionInSinhalaPage = ({navigation, route}) => {
const loadData = () => { const loadData = () => {
axios axios
.get('http://16.16.97.48/api/quiz/all_sinhala') .get('http://emidwife-api.onrender.com/api/quiz/all_sinhala')
.then(response => { .then(response => {
setQuestions(response.data.data); setQuestions(response.data.data);
setIsLoading(false); setIsLoading(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment