router.go 281 B

12345678910111213
  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. }