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
My code like this:
router := gin.New() friend := router.Group("/friend") { friend.GET("/", controller.GetFirends) }
I received a redirect response with statusCode 301 , while I request the path /friend with GET method.
The text was updated successfully, but these errors were encountered:
Your router sets the handler to /friend/ path. You should use router.GET("", controller...) if you want to use /friend (w/o trailing slash).
/friend/
router.GET("", controller...)
/friend
Sorry, something went wrong.
It works. Thank you very much.
No branches or pull requests
My code like this:
I received a redirect response with statusCode 301 , while I request the path /friend with GET method.
The text was updated successfully, but these errors were encountered: