Skip to content

Commit

Permalink
merge with develop
Browse files Browse the repository at this point in the history
  • Loading branch information
angelmaciasr committed Apr 16, 2024
2 parents e302e44 + e29e794 commit 003775a
Show file tree
Hide file tree
Showing 31 changed files with 1,068 additions and 415 deletions.
21 changes: 21 additions & 0 deletions gatewayservice/gateway-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,27 @@ app.get('/GetMovieDirectorsQuestions', async (_req, res) => {
getQuestions('/getMovieDirectorsQuestions', res);
});

app.get('/GetHistoryQuestions', async (_req, res) => {
getQuestions('/getHistoryQuestions', res);
});

app.get('/GetSportQuestions', async (_req, res) => {
getQuestions('/getSportQuestions', res);
});

app.get('/GetGeographyQuestions', async (_req, res) => {
getQuestions('/getGeographyQuestions', res);
});

app.get('/GetEntertainmentQuestions', async (_req, res) => {
getQuestions('/getEntertainmentQuestions', res);
});

app.get('/GetChemistryQuestions', async (_req, res) => {
getQuestions('/getChemistryQuestions', res);
});


async function getQuestions(specificPath, res){
try {
const wikiResponse = await axios.get(wikidataServiceUrl + specificPath, { timeout: 10000 });
Expand Down
277 changes: 277 additions & 0 deletions webapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-popover": "^1.0.7",
"@radix-ui/react-progress": "^1.0.3",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-tabs": "^1.0.4",
Expand Down
Loading

0 comments on commit 003775a

Please sign in to comment.