forked from ebhomengo/niki
1
0
Fork 0
niki/delivery/http_server/admin/kind_box_req/route.go

16 lines
404 B
Go
Raw Normal View History

package adminkindboxreqhandler
import (
"git.gocasts.ir/ebhomengo/niki/delivery/http_server/middleware"
2024-01-02 15:35:26 +00:00
echo "github.com/labstack/echo/v4"
)
func (h Handler) SetRoutes(e *echo.Echo) {
r := e.Group("/admin/kindboxreqs")
2024-01-23 07:39:58 +00:00
// todo - add acl
r.PATCH("/accept-kind-box-req/:id", h.Accept)
2024-01-22 15:21:13 +00:00
r.PATCH("/reject-kind-box-req/:id", h.Reject)
r.GET("/", h.GetAll, middleware.Auth(h.authSvc, h.authConfig))
}