Skip to content

Commit

Permalink
Merge pull request #195 from SoftwareEngineeringDaily/forum-improvements
Browse files Browse the repository at this point in the history
Editing comments
  • Loading branch information
jasonify authored Apr 7, 2018
2 parents 171e171 + 33bae77 commit 1848c77
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/routes/comment.route.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ router.route('/:commentId/upvote')
);

router.route('/:commentId')
.put(
expressJwt({ secret: config.jwtSecret })
, validate(paramValidation.comment)
, commentCtrl.update
)
.delete(
expressJwt({ secret: config.jwtSecret }),
commentCtrl.remove
Expand Down

0 comments on commit 1848c77

Please sign in to comment.