newtang / expresso

A faster, safer, backwards compatible router alternative for Express.
MIT License
5 stars 0 forks source link

Param triggers should be called after use (static path) #7

Open newtang opened 4 years ago

newtang commented 4 years ago

Currently, the callbacks in router.param are called before callbacks from router.use. This does not match what the express router does:

The order things should be called:

Ideally, the middleware would be added in the appropriate spot for routes that have already been added, and routes that are added after param is called.