原登录调用的接口 /auth/login 改为/auth/login_account
正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -140,8 +140,8 @@ func init() { | @@ -140,8 +140,8 @@ func init() { | ||
140 | nsAuth := beego.NewNamespace("/auth", | 140 | nsAuth := beego.NewNamespace("/auth", |
141 | beego.NSBefore(middleware.AllowOption), | 141 | beego.NSBefore(middleware.AllowOption), |
142 | beego.NSBefore(middleware.LogRequestData), | 142 | beego.NSBefore(middleware.LogRequestData), |
143 | - beego.NSRouter("/login", &controllers.AuthController{}, "post:Login"), | ||
144 | - beego.NSRouter("/login_secret", &controllers.AuthController{}, "post:LoginSecretKey"), | 143 | + beego.NSRouter("/login_account", &controllers.AuthController{}, "post:Login"), |
144 | + beego.NSRouter("/login", &controllers.AuthController{}, "post:LoginSecretKey"), | ||
145 | beego.NSRouter("/startCaptcha", &controllers.AuthController{}, "post:RegisterGeetest"), | 145 | beego.NSRouter("/startCaptcha", &controllers.AuthController{}, "post:RegisterGeetest"), |
146 | beego.NSRouter("/verifyCaptcha", &controllers.AuthController{}, "post:ValidateGeetest"), | 146 | beego.NSRouter("/verifyCaptcha", &controllers.AuthController{}, "post:ValidateGeetest"), |
147 | beego.NSRouter("/login_sms", &controllers.AuthController{}, "post:LoginSms"), | 147 | beego.NSRouter("/login_sms", &controllers.AuthController{}, "post:LoginSms"), |
-
请 注册 或 登录 后发表评论