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
Similarly to #750, I'm trying to use chi.Walk() to get a report of all routes. However, I found that some routes are missing when I use Route() as well as e.g. Get() with the same pattern: https://go.dev/play/p/7Ntz1yMoXrz
Interestingly, the route is visited by the walk function when you change r.Route("/bar", ... to r.Route("/bar/", ....
r.Route("/bar", ...
r.Route("/bar/", ...
Since the GET /foo/bar request is handled in both cases, I also expect chi.Walk() to report the route in both cases.
GET /foo/bar
The text was updated successfully, but these errors were encountered:
@sauerbraten did you find out anything else about this? I'm experiencing similar issues.
Sorry, something went wrong.
No, I intend to replace my chi uses with https://pkg.go.dev/net/http@master#ServeMux once Go 1.22 is released.
No branches or pull requests
Similarly to #750, I'm trying to use chi.Walk() to get a report of all routes. However, I found that some routes are missing when I use Route() as well as e.g. Get() with the same pattern: https://go.dev/play/p/7Ntz1yMoXrz
Interestingly, the route is visited by the walk function when you change
r.Route("/bar", ...
tor.Route("/bar/", ...
.Since the
GET /foo/bar
request is handled in both cases, I also expect chi.Walk() to report the route in both cases.The text was updated successfully, but these errors were encountered: