fixed mvc example 404

This commit is contained in:
TJ Holowaychuk 2012-04-26 04:28:29 -07:00
parent 3c162ae030
commit bd2a972dba

View File

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