relynolli-server/handlers/order/routes.go

14 lines
278 B
Go
Raw Permalink Normal View History

2024-03-15 21:27:45 +03:00
package order
import (
"github.com/gin-gonic/gin"
"relynolli-server/handlers/order/endpoints"
)
func HandleRoutes(parent *gin.RouterGroup) {
h := endpoints.GetHandlers()
order := parent.Group("/order")
order.POST("/make", h.MakeOrder)
order.POST("/total", h.GetTotal)
}