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.
14 lines
325 B
Go
14 lines
325 B
Go
1 year ago
|
package router
|
||
1 year ago
|
|
||
|
import (
|
||
|
"Lee-WineList/middleware"
|
||
|
"github.com/gin-gonic/gin"
|
||
|
)
|
||
|
|
||
|
// InitRoute 初始化路由
|
||
|
func InitRoute(g *gin.RouterGroup) {
|
||
|
login(g) // 登录相关路由
|
||
|
user(g.Group("/user", middleware.AuthorizeToken())) // 用户相关路由
|
||
1 year ago
|
wine(g.Group("/wine"))
|
||
1 year ago
|
}
|