This repository has been archived on 2025-11-04. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
qoverflow/server/routes/question/DeleteAnswerComment.js

13 lines
411 B
JavaScript

async function DeleteAnswerComment(req, res, next) {
const user = req.user;
const { questionID, answerID, commentID } = req.params;
const { success } = await createRequest(
'delete',
`/questions/${questionID}/answers/${answerID}/comments/${commentID}`
);
return success ? res.send() : res.status(500).send('Something went wrong.');
}
module.exports = DeleteAnswerComment;