router.go 393 B

1234567891011121314151617
  1. package routers
  2. import (
  3. "ERP_user/controllers"
  4. beego "github.com/beego/beego/v2/server/web"
  5. errorlibs "gogs.baozhida.cn/zoie/ERP_libs/Error"
  6. )
  7. func init() {
  8. beego.ErrorController(&errorlibs.ErrorController{})
  9. //过滤器,拦截所有请求
  10. beego.InsertFilter("/*", beego.BeforeRouter, RBACFilter)
  11. beego.Router("/UpFileToken", &controllers.UpFileController{}, "*:UpFileToken")
  12. }