12345678910111213 |
- package routers
- import (
- beego "github.com/beego/beego/v2/server/web"
- errorlibs "gogs.baozhida.cn/zoie/ERP_libs/Error"
- )
- func init() {
- beego.ErrorController(&errorlibs.ErrorController{})
- //过滤器,拦截所有请求
- beego.InsertFilter("/*", beego.BeforeRouter, RBACFilter)
- }
|