package routers import ( "beeblog/mcontrollers" beego "github.com/beego/beego/v2/server/web" ) func init() { beego.Router("/api/blogs", &mcontrollers.MBlogController{}, "get:BlogsPage") beego.Router("/api/blog/:id([0-9]+)", &mcontrollers.MBlogController{}, "get:Get") }