...
|
...
|
@@ -6,10 +6,9 @@ import ( |
|
|
)
|
|
|
|
|
|
func init() {
|
|
|
beego.Router("/auth/checkPassword", &controllers.AuthController{}, "Post:CheckPassword")
|
|
|
nsV1 := beego.NewNamespace("v1") //, beego.NSBefore(middleware.CheckJWTToken)
|
|
|
nsV1.Router("/auth/login", &controllers.AuthController{}, "Post:Login")
|
|
|
//nsV1.Router("/auth/checkPassword", &controllers.AuthController{}, "Post:CheckPassword") // 校验密码
|
|
|
nsV1.Router("/auth/checkPassword", &controllers.AuthController{}, "Post:CheckPassword") // 校验密码
|
|
|
nsV1.Router("/auth/smsCode", &controllers.AuthController{}, "Post:SmsCode")
|
|
|
nsV1.Router("/auth/accessToken", &controllers.AuthController{}, "Post:AccessToken")
|
|
|
nsV1.Router("/auth/refreshToken", &controllers.AuthController{}, "Post:RefreshToken")
|
...
|
...
|
|