diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-12-12 03:31:07 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-12-12 03:31:07 +0100 |
| commit | 942a72123ecf7ed91cf3cba1124adc11a3615208 (patch) | |
| tree | 42fa36700fd80c4903acb0ecb2b1e0bbdc8da2d6 /bucky/app/router.js | |
| parent | 41d0bd185c19c8a51ed9b85700f52181b6cc5012 (diff) | |
404 page and maybe deleting threads
Diffstat (limited to 'bucky/app/router.js')
| -rw-r--r-- | bucky/app/router.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bucky/app/router.js b/bucky/app/router.js index fc5c7ea..8eb9142 100644 --- a/bucky/app/router.js +++ b/bucky/app/router.js @@ -166,15 +166,15 @@ module.exports = function(app){ bucky.checkCommentPrivacy, bucky.destroyComment, function(req, res){ - res.send(200) + res.sendStatus(200) }) app.delete("/api/thread/:id", middleware.ensureAuthenticated, bucky.ensureThread, -// bucky.destroyThread, + bucky.checkThreadPrivacy, + bucky.destroyThread, function(req, res){ - // delete a thread - res.send(200) + res.sendStatus(200) }) app.get("/search/", |
