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
This code panics: panic: catch-all routes are only allowed at the end of the path in path '/api/*rest/two'
panic: catch-all routes are only allowed at the end of the path in path '/api/*rest/two'
router := httprouter.New() router.GET("/api/*rest/two", handler) router.GET("/api/*rest", handler)
But this one doesn't.
router := httprouter.New() router.GET("/api/*rest", handler) router.GET("/api/*rest/two", handler)
As far as I understand it the router should behave the same in the two cases, or am I missing something?
The text was updated successfully, but these errors were encountered:
In the second case one of the two routes is unreachable. However, this does not seem to be detected during registration, which is a bug.
Sorry, something went wrong.
@julienschmidt Hey, any progress on this?
b64ea83
Successfully merging a pull request may close this issue.
This code panics:
panic: catch-all routes are only allowed at the end of the path in path '/api/*rest/two'
But this one doesn't.
As far as I understand it the router should behave the same in the two cases, or am I missing something?
The text was updated successfully, but these errors were encountered: