Skip to content

Commit 3c0f9e6

Browse files
authored
Update index.js
1 parent b39701d commit 3c0f9e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/app/routes/Q&A/question/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ router.post('/', validation(QuestionValidationSchema), postQuestion);
1414
router.get('/getallquestions', getAllQuestion);
1515

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

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

0 commit comments

Comments
 (0)