chi icon indicating copy to clipboard operation
chi copied to clipboard

wildcard '*' must be the last value in a route

Open aep opened this issue 3 years ago • 0 comments

according to https://pkg.go.dev/github.com/go-chi/chi

Examples:

"/page/*" matches "/page/intro/latest"
"/page/*/index" also matches "/page/intro/latest"

however, that's not actually allowed. so presumably the docs are wrong?

unfortunately i need to match

  • /page/foo/bar/baz/json
  • /page/derp/json

as different routes.

aep avatar Jul 26 '22 15:07 aep