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
代码如下:
m.SetURLPrefix("api") m.Group("/v1", func() { m.Get("/test", func() string { return "test" }) })
访问/api/v1/test跟/v1/test一样的,需要的是/v1/test不能访问到。 还有在test里获取到的ctx.Req.URL.Path无论是/api..还是/v1..都是/v1/test没有/api这一层
The text was updated successfully, but these errors were encountered:
就是 trim prefix .. 一般情况下没什么用。。就是对 api/v1 和 /v1 一视同仁。
api/v1
/v1
Sorry, something went wrong.
No branches or pull requests
代码如下:
访问/api/v1/test跟/v1/test一样的,需要的是/v1/test不能访问到。
还有在test里获取到的ctx.Req.URL.Path无论是/api..还是/v1..都是/v1/test没有/api这一层
The text was updated successfully, but these errors were encountered: