正在显示
1 个修改的文件
包含
10 行增加
和
12 行删除
| @@ -3,8 +3,6 @@ package routers | @@ -3,8 +3,6 @@ package routers | ||
| 3 | import ( | 3 | import ( |
| 4 | "oppmg/controllers" | 4 | "oppmg/controllers" |
| 5 | 5 | ||
| 6 | - "github.com/astaxie/beego/context" | ||
| 7 | - | ||
| 8 | "oppmg/middleware" | 6 | "oppmg/middleware" |
| 9 | 7 | ||
| 10 | "github.com/astaxie/beego" | 8 | "github.com/astaxie/beego" |
| @@ -119,16 +117,16 @@ func init() { | @@ -119,16 +117,16 @@ func init() { | ||
| 119 | beego.AddNamespace(nsV1) | 117 | beego.AddNamespace(nsV1) |
| 120 | beego.AddNamespace(nsAuth) | 118 | beego.AddNamespace(nsAuth) |
| 121 | beego.AddNamespace(nsUcenter) | 119 | beego.AddNamespace(nsUcenter) |
| 122 | - nsTest := beego.NewNamespace("/test", | ||
| 123 | - beego.NSCond(func(ctx *context.Context) bool { | ||
| 124 | - if beego.BConfig.RunMode != "prod" { | ||
| 125 | - return true | ||
| 126 | - } | ||
| 127 | - return false | ||
| 128 | - }), | ||
| 129 | - beego.NSRouter("/te", &controllers.RbacController{}, "get:GetRoleMenuAll"), | ||
| 130 | - ) | ||
| 131 | - beego.AddNamespace(nsTest) | 120 | + // nsTest := beego.NewNamespace("/test", |
| 121 | + // beego.NSCond(func(ctx *context.Context) bool { | ||
| 122 | + // if beego.BConfig.RunMode != "prod" { | ||
| 123 | + // return true | ||
| 124 | + // } | ||
| 125 | + // return false | ||
| 126 | + // }), | ||
| 127 | + // beego.NSRouter("/te", &controllers.RbacController{}, "get:GetRoleMenuAll"), | ||
| 128 | + // ) | ||
| 129 | + // beego.AddNamespace(nsTest) | ||
| 132 | beego.SetStaticPath("/log", beego.AppConfig.String("log_filename")) | 130 | beego.SetStaticPath("/log", beego.AppConfig.String("log_filename")) |
| 133 | beego.SetStaticPath("/file/opp", beego.AppConfig.String("file_save_path")) | 131 | beego.SetStaticPath("/file/opp", beego.AppConfig.String("file_save_path")) |
| 134 | beego.SetStaticPath("/static", "./static") | 132 | beego.SetStaticPath("/static", "./static") |
-
请 注册 或 登录 后发表评论