summaryrefslogtreecommitdiff
path: root/bucky/app/router.js
diff options
context:
space:
mode:
Diffstat (limited to 'bucky/app/router.js')
-rw-r--r--bucky/app/router.js8
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/",