Update README.md

This commit is contained in:
eclair-lumiere 2019-09-18 23:29:50 +08:00
parent b562fed3aa
commit 31ba1ea8bc

View File

@ -251,7 +251,7 @@ func main() {
})
// However, this one will match /user/john/ and also /user/john/send
// If no other routers match /user/john, it will redirect to /user/john/
// If no other routers match /user/john, it will return 404 page not found information
router.GET("/user/:name/*action", func(c *gin.Context) {
name := c.Param("name")
action := c.Param("action")