15 lines
335 B
Go
15 lines
335 B
Go
|
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)
|
||
|
catalog.GET("/", h.GetCatalogItems)
|
||
|
catalog.GET("/:code", h.GetCatalogItem)
|
||
|
}
|