Return empty JSON for DELETE

This commit is contained in:
Typicode
2015-04-21 04:10:15 +02:00
parent 0e04990372
commit 0489c83798
2 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ module.exports = function(source) {
db(item.name).remove(item.id)
})
res.status(204).end()
res.status(200).jsonp({})
}
router.get('/db', showDatabase)