baseprime / grapnel

The smallest JavaScript router with named parameters, HTML5 pushState, and middleware support
http://grapnel.js.org
467 stars 40 forks source link

Allow next() to be called from the last middleware in the stack, like in Express #62

Closed ilearnio closed 7 years ago

ilearnio commented 8 years ago

Fixing TypeError: Cannot read property 'call' of undefined when calling next() from the last middleware in the stack

devnix commented 7 years ago

+1, I was going to open an issue about this behavour.

baseprime commented 7 years ago

I think this is definitely something that can be added to a future release. I'm going to close this PR, but can you guys create a new issue? @ilearnio @devnix