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

Add support for wildcard path matching #239

Open
lem-onade opened this issue Jul 10, 2023 · 0 comments
Open

Add support for wildcard path matching #239

lem-onade opened this issue Jul 10, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@lem-onade
Copy link
Contributor

lem-onade commented Jul 10, 2023

E.g.

"path": "/*"

Should match every possible path:

https://handlers.js/hello
https://handlers.js/hello-world
https://handlers.js/hello/world
https://handlers.js/hello/world/exclamation

Currently, the only wildcard-like functionality that is available, is using variables in the path ("path": "/:some-variable"). However, this only allows for a "wildcard" on the base URl/root. Any nested path will not match:

https://handlers.js/hello -> match
https://handlers.js/hello-world -> match
https://handlers.js/hello/world -> no match
https://handlers.js/hello/world/exclamation -> no match

@lem-onade lem-onade added enhancement New feature or request good first issue Good for newcomers labels Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant