router.go 288 B

1234567891011121314
  1. package routers
  2. import (
  3. errorlibs "gogs.baozhida.cn/zoie/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. }