newtang / expresso

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

Lacking support for params in `router.use` #6

Open newtang opened 4 years ago

newtang commented 4 years ago

Currently, .use only supports static paths. Express' router.use also supports param paths.

If we were to support param paths in use, ideally, the middleware would be added in the appropriate spot for routes that have already been added, and routes that are added after use is called.

The order things should be called:

newtang commented 4 years ago

We should also support mergeParams if we do this.