router.go 287 B

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