frontend et backend: Supprimer un commentaire

This commit is contained in:
Divlo
2020-04-10 20:58:19 +02:00
parent 39a332a867
commit 0ac2fbf3ab
4 changed files with 45 additions and 5 deletions

View File

@ -4,6 +4,11 @@ const isAuth = require('../middlewares/isAuth');
const CommentsRouter = Router();
CommentsRouter.route('/')
// Supprime un commentaire
.delete(isAuth, commentsController.deleteCommentById);
CommentsRouter.route('/:functionId')
// Récupère les commentaires