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
路由无法正确匹配
package main import ( "github.com/gin-gonic/gin" ) func main() { g := gin.Default() g.POST("/mount/:mode/:env/:servers/:behavior/:begin_player_id/:end_player_id/:mount_delay/:monitor", func(c *gin.Context) { c.String(200, "Hello1") }) g.POST("/inspect/:mode/:env/:servers/:behavior/:player_id", func(c *gin.Context) { c.String(200, "Hello2") }) g.Run(":9000") }
$ curl -X POST http://localhost:9000/mount/linear/local/1/common/101/101/100/true Hello1
$ curl -X POST http://127.0.0.1:3344/mount/linear/local/1/common/101/101/100/true Hello2
经常出现 Hello2 -> Frequently 偶尔出现 Hello1 -> Occasionally 将 "/inspect/:mode/:env/:servers/:behavior/:player_id" 修改为 "/inspect/local/:game_servers/:robot_behavior/:player_id" 则完全正确 modify "/inspect/:mode/:env/:servers/:behavior/:player_id" to "/inspect/local/:game_servers/:robot_behavior/:player_id" is ok
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
路由无法正确匹配
How to reproduce
Expectations
Actual result
经常出现 Hello2 -> Frequently
偶尔出现 Hello1 -> Occasionally
将 "/inspect/:mode/:env/:servers/:behavior/:player_id" 修改为 "/inspect/local/:game_servers/:robot_behavior/:player_id" 则完全正确
modify "/inspect/:mode/:env/:servers/:behavior/:player_id" to "/inspect/local/:game_servers/:robot_behavior/:player_id" is ok
Environment
The text was updated successfully, but these errors were encountered: