You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Currently it is not possible to reliably resolve full URL from a subrouter as subrouter
ctx.match
is matched from a partial path provided inWorkerRouter.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.
The text was updated successfully, but these errors were encountered: