router.go 387 B

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