mirror of https://github.com/gin-gonic/gin.git
commit
e73da74410
|
@ -128,7 +128,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/join/
|
// If no other routers match /user/john, it will redirect to /user/john/
|
||||||
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…
Reference in New Issue