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.
15 lines
325 B
Go
15 lines
325 B
Go
1 year ago
|
package router
|
||
1 year ago
|
|
||
|
import (
|
||
|
"Lee-WineList/api/app"
|
||
|
"github.com/gin-gonic/gin"
|
||
|
)
|
||
|
|
||
|
// 登录相关
|
||
|
func login(g *gin.RouterGroup) {
|
||
|
// 登录相关接口
|
||
|
g.POST("/token", app.LoginApi().Login)
|
||
1 year ago
|
//g.POST("/token/refresh", app.LoginApi().Refresh)
|
||
|
//g.POST("/token/logout", middleware.AuthorizeToken(), app.LoginApi().Logout)
|
||
1 year ago
|
}
|