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
there are two conflict router:
GET /v1/team/:tid/duty GET /v1/team/:svc/info
the secode route will not match
package main import ( "log" "net/http" "github.com/beego/mux" ) func main() { m := mux.New() m.Get("/v1/team/:tid/duty", func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("hello, beego mux\n")) }) m.Get("/v1/team/:svc/info", func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("hello, beego mux 2\n")) }) log.Fatal(http.ListenAndServe("127.0.0.1:2222", m)) }
curl:
mozhata@pc:try$ curl http://127.0.0.1:2222/v1/team/ididid/duty hello, beego mux mozhata@pc:try$ curl http://127.0.0.1:2222/v1/team/ididid/info "/v1/team/ididid/info" not implemented
but replace :svc to :tid, these two routes all works
:svc
:tid
The text was updated successfully, but these errors were encountered:
No branches or pull requests
there are two conflict router:
the secode route will not match
curl:
but replace
:svc
to:tid
, these two routes all worksThe text was updated successfully, but these errors were encountered: