Skip to content

Commit 3e0281f

Browse files
committed
Change this call to use the callbacks array that express uses per route instead of creating multiple similar routes to fix next('route') use
1 parent d5de96b commit 3e0281f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

+3
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,12 @@ methods.forEach(function(method){
5959
else {
6060
path = this._ns.join('/').replace(/\/\//g, '/').replace(/\/$/, '') || '/';
6161
}
62+
orig.call(self, path, args);
63+
/*
6264
args.forEach(function(fn){
6365
orig.call(self, path, fn);
6466
});
67+
*/
6568
});
6669

6770
return this;

0 commit comments

Comments
 (0)