This repository has been archived on 2024-11-28. You can view files and clone it, but cannot push or open issues or pull requests.
Files
schisandra-cloud-album/router/router.go
landaiqing f4b69b5d31 🎨 set up routes
2024-08-04 13:11:54 +08:00

16 lines
312 B
Go

package router
import (
"github.com/gin-gonic/gin"
"schisandra-cloud-album/global"
"schisandra-cloud-album/router/modules"
)
func InitRouter() *gin.Engine {
gin.SetMode(global.CONFIG.System.Env)
Router := gin.Default()
PublicGroup := Router.Group("api")
modules.AuthRouter(PublicGroup)
return Router
}