-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Backend] Add Delete API for Questions and Answers Fixed #920
Conversation
@@ -23,4 +25,7 @@ | |||
// Update Answer Status | |||
router.patch('/updateStatus', validation(updateAnswerStatusSchema), updateAnswerStatus); | |||
|
|||
// Delete Answer by Id | |||
router.delete('/deleteanswer', authMiddleware, deleteAnswer); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
authorization
@@ -23,4 +25,7 @@ | |||
// Update Answer Status | |||
router.patch('/updateStatus', validation(updateAnswerStatusSchema), updateAnswerStatus); | |||
|
|||
// Delete Answer by Id | |||
router.delete('/deleteanswer', authMiddleware, deleteAnswer); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
a database access
@@ -25,4 +27,7 @@ | |||
// route for updating the question status | |||
router.patch('/updateStatus', validation(updateQuestionStatusSchema), updateQuestionStatus); | |||
|
|||
// route for deleting the question with answers | |||
router.delete('/deletequestion', authMiddleware, deleteQuestion); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
authorization
@@ -25,4 +27,7 @@ | |||
// route for updating the question status | |||
router.patch('/updateStatus', validation(updateQuestionStatusSchema), updateQuestionStatus); | |||
|
|||
// route for deleting the question with answers | |||
router.delete('/deletequestion', authMiddleware, deleteQuestion); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
a database access
This route handler performs
a database access
@Kajol-Kumari can you please check and merge it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice and Clean! Seems like all validations are also in place.
@Kajol-Kumari Thank you |
Issue that this pull request solves
Issue Link resolve #889
Closes: #889
Brief description of what is fixed or changed
I had added backend functionality and endpoint to delete question and answer.
Types of changes
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that applyScreenshots or Video
kajolcheck.mp4