mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-19 07:38:57 +08:00
Update README.md
This commit is contained in:
parent
b562fed3aa
commit
31ba1ea8bc
@ -251,7 +251,7 @@ func main() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// However, this one will match /user/john/ and also /user/john/send
|
// 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) {
|
router.GET("/user/:name/*action", func(c *gin.Context) {
|
||||||
name := c.Param("name")
|
name := c.Param("name")
|
||||||
action := c.Param("action")
|
action := c.Param("action")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user