mirror of
https://github.com/typicode/json-server.git
synced 2025-07-28 04:32:24 +08:00
Return empty JSON for DELETE
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user