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.
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: