package routers import ( "ERP_user/controllers" errorlibs "git.baozhida.cn/ERP_libs/Error" beego "github.com/beego/beego/v2/server/web" ) func init() { beego.ErrorController(&errorlibs.ErrorController{}) //过滤器,拦截所有请求 beego.InsertFilter("/*", beego.BeforeRouter, RBACFilter) beego.Router("/UpFileToken", &controllers.UpFileController{}, "*:UpFileToken") }