You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
panic: pattern "/v1/rsrc/{geoID}/path2/{orderID}/" (registered at /Users/user/Dev/feltgis/go/pkg/introspectmux/introspect_mux.go:32) conflicts with pattern "/v1/rsrc/path1/{geoID}/path2/{orderID}/" (registered at /Users/user/Dev/feltgis/go/pkg/introspectmux/introspect_mux.go:32):
/v1/rsrc/{geoID}/path2/{orderID}/ and /v1/rsrc/path1/{geoID}/path2/{orderID}/ both match some paths, like "/v1/rsrc/path1/path2/path2/orderID/".
But neither is more specific than the other.
/v1/rsrc/{geoID}/path2/{orderID}/ matches "/v1/rsrc/geoID/path2/orderID/", but /v1/rsrc/path1/{geoID}/path2/{orderID}/ doesn't.
/v1/rsrc/path1/{geoID}/path2/{orderID}/ matches "/v1/rsrc/path1/geoID/path2/orderID/", but /v1/rsrc/{geoID}/path2/{orderID}/ doesn't.
What did you expect to see?
The paths should not conflict because the routes refer to different resources. Of course, the better design for this API is:
Go version
go 1.22.4
Output of
go env
in your module/workspace:What did you do?
Adding some routes to a server (the API design is bad, but it isn't mine and I need to match the contract):
What did you see happen?
What did you expect to see?
The paths should not conflict because the routes refer to different resources. Of course, the better design for this API is:
But I'm constrained to use this one to satisfy legacy contracts:
The text was updated successfully, but these errors were encountered: