access_router.go
561 字节
package routers
import (
"github.com/astaxie/beego"
"gitlab.fjmaimaimai.com/mmm-go/godevp/pkg/port/beego/controllers"
)
func init() {
beego.Router("/access/", &controllers.AccessController{}, "POST:CreateAccess")
beego.Router("/access/:accessId", &controllers.AccessController{}, "PUT:UpdateAccess")
beego.Router("/access/:accessId", &controllers.AccessController{}, "GET:GetAccess")
beego.Router("/access/:accessId", &controllers.AccessController{}, "DELETE:DeleteAccess")
beego.Router("/access/", &controllers.AccessController{}, "GET:ListAccess")
}