mirror of
https://github.com/skyle1995/NetworkAuth.git
synced 2026-05-25 02:24:05 +08:00
16 lines
308 B
Go
16 lines
308 B
Go
package server
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// RegisterRoutes 聚合注册所有路由
|
|
func RegisterRoutes(r *gin.Engine) {
|
|
// 所有路由基于 /api
|
|
apiGroup := r.Group("/api")
|
|
|
|
RegisterInstallRoutes(apiGroup)
|
|
RegisterDefaultRoutes(apiGroup)
|
|
RegisterAdminRoutes(apiGroup)
|
|
}
|