Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
EmidWife-New
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2023-24-005
EmidWife-New
Commits
50353b07
Commit
50353b07
authored
May 17, 2024
by
Malsha Jayakody
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change api
parent
66491651
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/screens/home/game/QuestionsInEnglish.js
src/screens/home/game/QuestionsInEnglish.js
+1
-1
src/screens/home/game/QuestionsInShinhala.js
src/screens/home/game/QuestionsInShinhala.js
+1
-1
No files found.
src/screens/home/game/QuestionsInEnglish.js
View file @
50353b07
...
@@ -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
);
...
...
src/screens/home/game/QuestionsInShinhala.js
View file @
50353b07
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment