package cdek import ( "github.com/gin-gonic/gin" "os" "relynolli-server/handlers/cdek/endpoints" ) func HandleRoutes(parent *gin.RouterGroup) { h := endpoints.GetHandlers() cdek := parent.Group("/cdek") if os.Getenv("IS_PROD") == "1" { // Caching for production usage cdek.GET("/points", h.GetDeliveryPoints) } else { cdek.GET("/points", h.GetDeliveryPoints) } }