From d039eb1d177b697ed3215cc92e503a6d89d76ced Mon Sep 17 00:00:00 2001 From: Manueluz <60448849+Manueluz@users.noreply.github.com> Date: Tue, 13 Feb 2024 10:26:02 +0100 Subject: [PATCH] Update question.js --- question_service/question.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/question_service/question.js b/question_service/question.js index 00d17af4..9d8b07b8 100644 --- a/question_service/question.js +++ b/question_service/question.js @@ -17,7 +17,7 @@ app.use(authMiddleware); // Auth middleware for the questions API // Api endpoints // Question endpoints -app.get('/api/questions/generate', async (req, res) => { +app.post('/api/questions/generate', async (req, res) => { res.status(200).json(await geoGen()) }); @@ -27,4 +27,4 @@ const server = app.listen(port, () => { }); -module.exports = server \ No newline at end of file +module.exports = server