Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow regex matching for path params like express does #506

Open
mutedchaos opened this issue Oct 12, 2020 · 1 comment
Open

Allow regex matching for path params like express does #506

mutedchaos opened this issue Oct 12, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@mutedchaos
Copy link
Contributor

It should be possible to include matching for path params with a regex in the URL, as that is something express supports:

/api/getUser/:id([a-f0-9]{24})
@mutedchaos mutedchaos added the enhancement New feature or request label Oct 12, 2020
@mutedchaos mutedchaos self-assigned this Mar 20, 2021
@mutedchaos mutedchaos added this to the 2.0.0 milestone Mar 20, 2021
@mutedchaos
Copy link
Contributor Author

The actual implementation is quite different with the ability to constrain the type of a path parameter to a regex-limited string, but it accomplishes the same thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant