Lee-WineList/router/app/route.go

13 lines
298 B
Go
Raw Normal View History

2023-04-24 17:19:41 +08:00
package app
import (
"Lee-WineList/middleware"
"github.com/gin-gonic/gin"
)
// InitRoute 初始化路由
func InitRoute(g *gin.RouterGroup) {
login(g) // 登录相关路由
user(g.Group("/user", middleware.AuthorizeToken())) // 用户相关路由
}