Skip to content

Commit 33bae77

Browse files
committed
Editing works
1 parent f0afe78 commit 33bae77

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

server/routes/comment.route.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ router.route('/:commentId/upvote')
3636
);
3737

3838
router.route('/:commentId')
39+
.put(
40+
expressJwt({ secret: config.jwtSecret })
41+
, validate(paramValidation.comment)
42+
, commentCtrl.update
43+
)
3944
.delete(
4045
expressJwt({ secret: config.jwtSecret }),
4146
commentCtrl.remove

0 commit comments

Comments
 (0)