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

Need a fallback Router #105

Open
conanoc opened this issue Sep 23, 2022 · 2 comments
Open

Need a fallback Router #105

conanoc opened this issue Sep 23, 2022 · 2 comments
Labels

Comments

@conanoc
Copy link

conanoc commented Sep 23, 2022

I need a router that can handle any missing path after a prefix path.
For example,
Router A handles /test/a
Router B handles /test/b/c
A fallback router wants to handle any request that starts with /test, e.g., /test/c, /test/a/b.

@thecatalinstan
Copy link
Owner

@conanoc
Copy link
Author

conanoc commented Sep 24, 2022

Thanks. The recursive option could be useful. What happens when two routers can handle the same path? Which one will be executed?

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

No branches or pull requests

2 participants