mirror of
https://github.com/zebrajr/express.git
synced 2025-12-06 12:19:51 +01:00
fixed mvc example 404
This commit is contained in:
parent
3c162ae030
commit
bd2a972dba
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user