Skip to content

Commit

Permalink
fix: CSRF issues
Browse files Browse the repository at this point in the history
  • Loading branch information
psychobunny committed Aug 20, 2020
1 parent ed01565 commit cf43bee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@
});

app.get('/comments/get/:id/:pagination?', middleware.applyCSRF, Comments.getCommentData);
app.post('/comments/reply', Comments.replyToComment);
app.post('/comments/publish', Comments.publishArticle);
app.post('/comments/reply', middleware.applyCSRF, Comments.replyToComment);
app.post('/comments/publish', middleware.applyCSRF, Comments.publishArticle);

app.get('/admin/blog-comments', middleware.admin.buildHeader, renderAdmin);
app.get('/api/admin/blog-comments', renderAdmin);
Expand Down

0 comments on commit cf43bee

Please sign in to comment.