Allow middlewares to be set before json-server middlewares

This commit is contained in:
Typicode
2015-04-17 21:35:24 +02:00
parent 3babbb7f0d
commit ca867e8563
7 changed files with 47 additions and 42 deletions

View File

@ -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)