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

Pass base URL to subrouter #5

Open
nounder opened this issue Mar 3, 2024 · 0 comments
Open

Pass base URL to subrouter #5

nounder opened this issue Mar 3, 2024 · 0 comments

Comments

@nounder
Copy link

nounder commented Mar 3, 2024

Currently it is not possible to reliably resolve full URL from a subrouter as subrouter ctx.match is matched from a partial path provided in WorkerRouter.use. The only way to resolve full URL within subrouters is to make assumptions about parent routes which goes against idea of composability.

It would be really useful to pass parent match to subrouters making it possible to reliably resolve full URL within a subrouter.

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

No branches or pull requests

1 participant