认证流程迁移到 oauth 风格,登出接口改为 /revoke,重构接口代码到 service
This commit is contained in:
@@ -12,10 +12,9 @@ func ApplyRouters(app *fiber.App) {
|
||||
|
||||
// 认证
|
||||
auth := api.Group("/auth")
|
||||
auth.Post("/verify/sms", handlers.SmsCode)
|
||||
auth.Post("/login/sms", auth2.PermitDevice(), handlers.Login)
|
||||
auth.Post("/logout", handlers.Logout)
|
||||
auth.Post("/token", handlers.Token)
|
||||
auth.Post("/revoke", handlers.Revoke)
|
||||
auth.Post("/verify/sms", handlers.SmsCode)
|
||||
|
||||
// 通道
|
||||
channel := api.Group("/channel")
|
||||
|
||||
Reference in New Issue
Block a user