...
|
...
|
@@ -12,9 +12,9 @@ var nsV1 *beego.Namespace |
|
|
|
|
|
func init() {
|
|
|
nsV1 := beego.NewNamespace("v1",
|
|
|
beego.NSNamespace("vod", beego.NSBefore(controllers.AllowOption), beego.NSInclude(&v1.VodController{})),
|
|
|
beego.NSNamespace("push", beego.NSBefore(controllers.AllowOption), beego.NSInclude(&v1.PushController{})),
|
|
|
beego.NSNamespace("sms", beego.NSBefore(controllers.AllowOption), beego.NSInclude(&v1.SmsController{})),
|
|
|
beego.NSNamespace("vod", beego.NSInclude(&v1.VodController{})),//, beego.NSBefore(controllers.AllowOption)
|
|
|
beego.NSNamespace("push", beego.NSInclude(&v1.PushController{})),//, beego.NSBefore(controllers.AllowOption)
|
|
|
beego.NSNamespace("sms", beego.NSInclude(&v1.SmsController{})),//, beego.NSBefore(controllers.AllowOption)
|
|
|
)
|
|
|
beego.SetStaticPath("/log", constant.LogFilePath)
|
|
|
beego.Router("/v2/vod/createStsAuth", &v2.VodController{}, "Post:CreateStsAuth")
|
...
|
...
|
|