Anchoring operation paths in humago - possible minor bug #606
davidolrik
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using
net/http
&humago
.When creating an operation that ends with a
/
, like the root path you need to anchor it with{$}
so the complete path becomes/{$}
.If you don't do this, your root operation will be called for any url not already defined. (docs for ServeMux patterns)
Same goes for
/example/
- if it ends with a slash it matches all urls below that path.Everything works as it should, the only thing I would consider broken is the docs, where the anchor
{$}
is included in the url.So maybe a minor bug?
Beta Was this translation helpful? Give feedback.
All reactions