Prefix not work when pass router to another router using r.route
See original GitHub issueI pass router to router using r.use
and prefix work fine. But when I try to pass using r.route
prefix not work, I think it is because router delegate work to @koa/router.
Can you handler this problem that I can you r.route
with prefix and add documentation: “Passing through routers and be able use prefix”
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Including router which has a Mount on "/" does not work #4435
The mount with an empty path is in violation of 2. Passing a prefix would solve this issue in most cases however when...
Read more >Nested Gorilla Mux router does not work - Stack Overflow
I know this question is somewhat old, but I have spent some time figuring out how handlers and matching work in go.
Read more >Troubleshoot Border Gateway Protocol Routes that Do Not ...
This document describes how to troubleshoot when a Border Gateway Protocol (BGP) router does not announce BGP routes to peers.
Read more >Routers - Django REST framework
Resource routing allows you to quickly declare all of the common routes for a given resourceful controller. Instead of declaring separate routes for...
Read more >Path Prefix Middleware in Go - Calhoun.io
ServeMux] to wrap specific path prefixes in middleware ... func main() { r := mux. ... This works because the sirMuxalot router won't...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Roman-Kirnos, you can create a util or helper file then add this fucntion to it.
Now, it’s shorter.
You can use the Prefix path as constant like this;
Then use it like that and every thing work fine.