niki/delivery/http_server/benefactor/kind_box/route.go

16 lines
406 B
Go
Raw Normal View History

package benefactorkindboxhandler
import (
"github.com/labstack/echo/v4"
)
func (h Handler) SetRoutes(e *echo.Echo) {
r := e.Group("/benefactor/kindboxes")
r.POST("/").Name = "benefactor-addkindbox"
r.GET("/:id").Name = "benefactor-getkindboxbyid"
r.GET("/").Name = "benefactor-getallkindbox"
r.PUT("/:id").Name = "benefactor-updatekindbox"
// r.DELETE("/:id").Name = "benefactor-deletekindbox"
}