完善登录逻辑,登录接口统一到 /token
This commit is contained in:
@@ -12,7 +12,7 @@ func ApplyRouters(app *fiber.App) {
|
||||
|
||||
// 认证
|
||||
auth := api.Group("/auth")
|
||||
auth.Post("/verify/sms", auth2.PermitDevice(), handlers.SmsCode)
|
||||
auth.Post("/verify/sms", handlers.SmsCode)
|
||||
auth.Post("/login/sms", auth2.PermitDevice(), handlers.Login)
|
||||
auth.Post("/logout", handlers.Logout)
|
||||
auth.Post("/token", handlers.Token)
|
||||
|
||||
Reference in New Issue
Block a user