You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
345 B
Go

package app
import (
"Lee-WineList/api/app"
"Lee-WineList/middleware"
"github.com/gin-gonic/gin"
)
// 登录相关
func login(g *gin.RouterGroup) {
// 登录相关接口
g.POST("/token", app.LoginApi().Login)
g.POST("/token/refresh", app.LoginApi().Refresh)
g.POST("/token/logout", middleware.AuthorizeToken(), app.LoginApi().Logout)
}