...
|
...
|
@@ -74,6 +74,7 @@ func init() { |
|
|
beego.NSRouter("/position", &controllers.CommonController{}, "post:SelectorPosition"),
|
|
|
beego.NSRouter("/user_and_department", &controllers.CommonController{}, "post:SelectorUserAndDepart"),
|
|
|
beego.NSRouter("/default_image", &controllers.CommonController{}, "post:DefaultImage"),
|
|
|
beego.NSRouter("/role/user", &controllers.CommonController{}, "post:SelectorRoleUser"),
|
|
|
),
|
|
|
beego.NSNamespace("/template",
|
|
|
beego.NSRouter("/add", &controllers.TemplateController{}, "post:TemplateAdd"),
|
...
|
...
|
@@ -91,9 +92,7 @@ func init() { |
|
|
beego.NSNamespace("/upload",
|
|
|
beego.NSRouter("/image", &controllers.UploadController{}, "post:UploadImage"),
|
|
|
),
|
|
|
beego.NSNamespace("/my",
|
|
|
beego.NSRouter("/reset_password", &controllers.MyController{}, "post:ResetPassword"),
|
|
|
),
|
|
|
|
|
|
beego.NSNamespace("/config",
|
|
|
beego.NSRouter("/score", &controllers.ConfigController{}, "post:ConfigScore"),
|
|
|
beego.NSRouter("/score/get", &controllers.ConfigController{}, "post:GetConfigScore"),
|
...
|
...
|
@@ -112,6 +111,7 @@ func init() { |
|
|
beego.NSRouter("/login_sms", &controllers.AuthController{}, "post:LoginSms"),
|
|
|
beego.NSRouter("/sms_code", &controllers.AuthController{}, "post:SmsCode"),
|
|
|
beego.NSRouter("/sms_code/check", &controllers.AuthController{}, "post:SmsCodeCheck"),
|
|
|
beego.NSRouter("/reset_password", &controllers.MyController{}, "post:ResetPassword"),
|
|
|
)
|
|
|
nsUcenter := beego.NewNamespace("/ucenter",
|
|
|
beego.NSBefore(middleware.LogRequestData),
|
...
|
...
|
|