We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
"radix3": "1.1.2"
https://stackblitz.com/edit/stackblitz-starters-awjduj?file=index.js
i have route with generic entity handler /api/:entity/:id and route with specific entity id handler /api/:entity/123
/api/:entity/:id
/api/:entity/123
and it works well
but when route handler for specific entity present in router /api/posts/:id/comments
/api/posts/:id/comments
router.lookup no longer returns generic route for this entity by paths like this /api/posts/312
/api/posts/312
it just returns nothing because in lookup function it sees static node by section name and tries to find route only inside this node
No response
The text was updated successfully, but these errors were encountered:
Thanks for report and reproduction. I have made a rewrite of this library in #107 and next version will correctly handle this.
Updated sandbox with rou3: https://stackblitz.com/edit/stackblitz-starters-6na6gb?file=index.js
Sorry, something went wrong.
No branches or pull requests
Environment
"radix3": "1.1.2"
Reproduction
https://stackblitz.com/edit/stackblitz-starters-awjduj?file=index.js
Describe the bug
i have route with generic entity handler
/api/:entity/:id
and route with specific entity id handler
/api/:entity/123
and it works well
but when route handler for specific entity present in router
/api/posts/:id/comments
router.lookup no longer returns generic route for this entity by paths like this
/api/posts/312
it just returns nothing because in lookup function it sees static node by section name and tries to find route only inside this node
Additional context
Logs
No response
The text was updated successfully, but these errors were encountered: