package routes import ( "bugulma/backend/internal/handler" "github.com/gin-gonic/gin" ) // RegisterMatchingRoutes registers all matching-related routes func RegisterMatchingRoutes(public *gin.RouterGroup, protected *gin.RouterGroup, matchingHandler *handler.MatchingHandler) { // Public read-only routes public.POST("/matching/find", matchingHandler.FindMatches) public.GET("/matching/top", matchingHandler.GetTopMatches) // Protected write routes matching := protected.Group("/matching") { matching.POST("/query", matchingHandler.FindMatches) matching.POST("/create-from-query", matchingHandler.CreateMatchFromQuery) matching.GET("/:matchId", matchingHandler.GetMatchDetails) matching.PUT("/:matchId/status", matchingHandler.UpdateMatchStatus) } }