diff --git a/examples/mvc/lib/boot.js b/examples/mvc/lib/boot.js index 0273cae0..4ec98a65 100644 --- a/examples/mvc/lib/boot.js +++ b/examples/mvc/lib/boot.js @@ -20,7 +20,10 @@ module.exports = function(parent, options){ // before middleware support if (obj.before) { - path = '/' + name + '/:' + name + '_id*'; + path = '/' + name + '/:' + name + '_id'; + app.all(path, obj.before); + verbose && console.log(' ALL %s -> before', path); + path = '/' + name + '/:' + name + '_id/*'; app.all(path, obj.before); verbose && console.log(' ALL %s -> before', path); }