Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Hemu21 authored May 16, 2024
1 parent 3c0f9e6 commit c352cd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/routes/Q&A/question/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ router.post('/', validation(QuestionValidationSchema), postQuestion);
router.get('/getallquestions', getAllQuestion);

// This route will give question by given id
router.get('/:getQuestionById', getQuestionById);
router.get('/getQuestionById/:questionId', getQuestionById);

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
a database access
, but is not rate-limited.

// This route will increase upvote by one.
router.patch('/upvote', upvoteQuestion);
Expand Down

0 comments on commit c352cd4

Please sign in to comment.