Lee-WineList/router/login.go

15 lines
325 B
Go
Raw Normal View History

2023-04-27 15:56:12 +08:00
package router
2023-04-24 17:19:41 +08:00
import (
"Lee-WineList/api/app"
"github.com/gin-gonic/gin"
)
// 登录相关
func login(g *gin.RouterGroup) {
// 登录相关接口
g.POST("/token", app.LoginApi().Login)
2023-04-27 15:56:12 +08:00
//g.POST("/token/refresh", app.LoginApi().Refresh)
//g.POST("/token/logout", middleware.AuthorizeToken(), app.LoginApi().Logout)
2023-04-24 17:19:41 +08:00
}