正在显示
1 个修改的文件
包含
7 行增加
和
1 行删除
@@ -169,12 +169,18 @@ func init() { | @@ -169,12 +169,18 @@ func init() { | ||
169 | beego.NSRouter("/company/allow_forbid", &controllers.CompanyController{}, "post:AllowForidCompanyForUCenter"), | 169 | beego.NSRouter("/company/allow_forbid", &controllers.CompanyController{}, "post:AllowForidCompanyForUCenter"), |
170 | ) | 170 | ) |
171 | 171 | ||
172 | + nsCommon := beego.NewNamespace("/common", | ||
173 | + beego.NSBefore(middleware.AllowOption), | ||
174 | + beego.NSBefore(middleware.LogRequestData), | ||
175 | + beego.NSRouter("/common/chance/media", &controllers.AuditController{}, "post:GetChangeMedia"), | ||
176 | + ) | ||
172 | beego.AddNamespace(nsV1) | 177 | beego.AddNamespace(nsV1) |
173 | beego.AddNamespace(nsAuth) | 178 | beego.AddNamespace(nsAuth) |
174 | beego.AddNamespace(nsUcenter) | 179 | beego.AddNamespace(nsUcenter) |
180 | + beego.AddNamespace(nsCommon) | ||
175 | beego.SetStaticPath("/log", beego.AppConfig.String("log_filename")) | 181 | beego.SetStaticPath("/log", beego.AppConfig.String("log_filename")) |
176 | beego.SetStaticPath("/file/opp", beego.AppConfig.String("file_save_path")) | 182 | beego.SetStaticPath("/file/opp", beego.AppConfig.String("file_save_path")) |
177 | beego.SetStaticPath("/static", "./static") | 183 | beego.SetStaticPath("/static", "./static") |
178 | //外链获取机会的图片、视频、音频数据 | 184 | //外链获取机会的图片、视频、音频数据 |
179 | - beego.Router("/common/chance/media", &controllers.AuditController{}, "post:GetChangeMedia") | 185 | + |
180 | } | 186 | } |
-
请 注册 或 登录 后发表评论