Skip to content

chi.Walk missing routes #830

Description

@sauerbraten

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/", ....

Since the GET /foo/bar request is handled in both cases, I also expect chi.Walk() to report the route in both cases.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions