2024-01-02 14:04:16 +00:00
|
|
|
package adminkindboxhandler
|
|
|
|
|
|
|
|
import (
|
2024-07-01 17:13:28 +00:00
|
|
|
"git.gocasts.ir/ebhomengo/niki/delivery/http_server/middleware"
|
|
|
|
"git.gocasts.ir/ebhomengo/niki/entity"
|
|
|
|
"github.com/labstack/echo/v4"
|
2024-01-02 14:04:16 +00:00
|
|
|
)
|
|
|
|
|
2024-07-01 17:13:28 +00:00
|
|
|
func (h Handler) SetRoutes(e *echo.Echo) {
|
|
|
|
r := e.Group("/admin/kindboxes")
|
|
|
|
|
|
|
|
r.Use(middleware.Auth(h.authSvc, h.authConfig))
|
|
|
|
|
|
|
|
r.GET("/:id", h.Get, middleware.AdminAuthorization(h.adminAuthorizeSvc, entity.AdminKindBoxGetPermission))
|
2024-01-02 14:04:16 +00:00
|
|
|
}
|