2024-01-02 14:04:16 +00:00
|
|
|
package benefactorkindboxreqhandler
|
|
|
|
|
|
|
|
import (
|
2024-01-02 15:35:26 +00:00
|
|
|
echo "github.com/labstack/echo/v4"
|
2024-01-02 14:04:16 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func (h Handler) SetRoutes(e *echo.Echo) {
|
|
|
|
r := e.Group("/benefactor/kindboxreqs")
|
|
|
|
|
2024-01-02 15:35:26 +00:00
|
|
|
r.POST("/", h.Add).Name = "benefactor-addkindboxreq"
|
|
|
|
r.GET("/:id", h.Get).Name = "benefactor-get-kindboxreqbyid"
|
|
|
|
r.GET("/", h.GetAll).Name = "benefactor-getallkindboxreq"
|
2024-01-03 11:50:18 +00:00
|
|
|
r.PATCH("/:id", h.Update).Name = "benefactor-updatekindboxreq"
|
2024-01-02 14:04:16 +00:00
|
|
|
}
|