2024-03-15 21:27:45 +03:00
|
|
|
package catalog
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
"relynolli-server/handlers/catalog/endpoints"
|
|
|
|
)
|
|
|
|
|
|
|
|
func HandleRoutes(parent *gin.RouterGroup) {
|
|
|
|
h := endpoints.GetHandlers()
|
|
|
|
catalog := parent.Group("/catalog")
|
|
|
|
catalog.GET("/filters", h.GetFilters)
|
2024-03-21 19:46:20 +03:00
|
|
|
catalog.GET("/count", h.Count)
|
|
|
|
catalog.GET("", h.GetCatalogItems)
|
2024-03-15 21:27:45 +03:00
|
|
|
catalog.GET("/:code", h.GetCatalogItem)
|
|
|
|
}
|