Skip to content

Commit

Permalink
Minor correction in the endpoints of the question service: they were …
Browse files Browse the repository at this point in the history
…missing a slash at the start
  • Loading branch information
ChristianFN2 committed Mar 9, 2024
1 parent 2a14b18 commit a2d8be8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions questionservice/question-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const wiq = new WIQ_API()
* @param {} req - Not used
* @param {Object} res - Contains the question (question) and the images of the flags (flags)
*/
app.get('flags/question', async (req, res) => {
app.get('/flags/question', async (req, res) => {
const question = await wiq.getQuestionAndCountryFlags()
res.json(question);
});
Expand All @@ -107,7 +107,7 @@ app.get('flags/question', async (req, res) => {
* or not "false". In case it was incorrect, the chosen
* country will be returned as well
*/
app.get('flags/answer', (req, res) => {
app.get('/flags/answer', (req, res) => {
const answeredFlag = req.body
if(correctAnswerFlag==answeredFlag){
res.json({
Expand Down

0 comments on commit a2d8be8

Please sign in to comment.