mirror of
https://github.com/typicode/json-server.git
synced 2025-07-28 04:32:24 +08:00
Allow middlewares to be set before json-server middlewares
This commit is contained in:
@ -176,6 +176,7 @@ module.exports = function(source) {
|
||||
|
||||
// Remove dependents documents
|
||||
var removable = utils.getRemovable(db.object)
|
||||
console.log(removable)
|
||||
|
||||
_(removable).each(function(item) {
|
||||
db(item.name).remove(item.id)
|
||||
|
Reference in New Issue
Block a user