2026-04-21 09:59:37 +02:00

16 lines
423 B
Go

package http
import (
"git.kanopo.dev/rhythm/rhythm-backend/internal/http/api/auth"
"git.kanopo.dev/rhythm/rhythm-backend/internal/http/api/health"
"github.com/gin-gonic/gin"
)
func GlueRoutes(r *gin.Engine, healthHandler *health.Handler, authHandler *auth.Handler) {
api := r.Group("/api")
healthHandler.RegisterRoutes(api.Group("/health"))
v1 := api.Group("/v1")
authHandler.RegisterRoutes(v1.Group("/auth"))
}