-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Router.use do not receive ctx.param(s) when route has prefix with par…
…ams (#69) * add failing test for prefix param(s) not being passed to .use * update router to not ignore captures if route has prefix * check if router prefix has params before considering disabling captures * simplify test case * make the default matcher ([^\/]*) instead of (.*) for prefix * add more tests * move new tests to router#prefix * fix require of path-to-regexp * pathToRegExp -> pathToRegexp * update pathToRegexp usage to match refactored path-to-regexp
- Loading branch information
Showing
2 changed files
with
87 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters