Skip to content

Commit 1848c77

Browse files
authored
Merge pull request #195 from SoftwareEngineeringDaily/forum-improvements
Editing comments
2 parents 171e171 + 33bae77 commit 1848c77

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)