package routers import ( "beeblog/controllers" beego "github.com/beego/beego/v2/server/web" ) func init() { beego.Router("/api/comms/save", &controllers.CommentController{}, "post:Save") beego.Router("/api/comms/del/:id([0-9]+)", &controllers.CommentController{}, "get:Del") }