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