2024-01-02 14:04:16 +00:00
|
|
|
package benefactorkindboxreqhandler
|
|
|
|
|
|
|
|
import (
|
2024-01-16 16:13:06 +00:00
|
|
|
"git.gocasts.ir/ebhomengo/niki/delivery/http_server/middleware"
|
2024-01-17 07:46:57 +00:00
|
|
|
"git.gocasts.ir/ebhomengo/niki/entity"
|
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-17 07:46:57 +00:00
|
|
|
r.POST("/", h.Add, middleware.Auth(h.authSvc, h.authConfig),
|
|
|
|
middleware.BenefactorAuthorization(entity.UserBenefactorRole))
|
2024-01-16 16:13:06 +00:00
|
|
|
//nolint:gocritic
|
|
|
|
// r.GET("/:id", h.Get)
|
|
|
|
// r.GET("/", h.GetAll)
|
|
|
|
// r.PATCH("/:id", h.Update)
|
2024-01-02 14:04:16 +00:00
|
|
|
}
|