diff --git a/main.go b/main.go index 91bbdc0..1648c29 100755 --- a/main.go +++ b/main.go @@ -135,6 +135,15 @@ func main() { } }) + r.GET("/:title/*option", func(c *gin.Context) { + title := c.Param("title") + option := c.Param("option") + fmt.Println(title, "["+option+"]") + if option == "/view" { + } else { + c.Redirect(302, "/"+title) + } + }) r.Run(":12312") }