package api import ( "gitea.loveuer.com/loveuer/cluster/api/v1" "gitea.loveuer.com/loveuer/cluster/handler" "gitea.loveuer.com/loveuer/cluster/internal/registry/storage" "github.com/gofiber/fiber/v3" ) // SetupRoutes 设置所有路由 func SetupRoutes(app *fiber.App, store storage.Storage) { // REST API v1 api := app.Group("/api/v1") v1.SetupRoutes(api) // OCI Registry API v2 - 使用通配符路由处理所有 /v2/* 路径 app.All("/v2/*", handler.RegistryV2(store)) }