router.go 282 B

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