forked from ebhomengo/niki
16 lines
430 B
Go
16 lines
430 B
Go
package agentkindboxhandler
|
|
|
|
import (
|
|
"git.gocasts.ir/ebhomengo/niki/delivery/http_server/middleware"
|
|
"git.gocasts.ir/ebhomengo/niki/entity"
|
|
"github.com/labstack/echo/v4"
|
|
)
|
|
|
|
func (h Handler) SetRoutes(e *echo.Echo) {
|
|
r := e.Group("/agents/kindboxes")
|
|
|
|
r.Use(middleware.Auth(h.authSvc, h.authConfig))
|
|
|
|
r.GET("/:id", h.Get, middleware.AdminAuthorization(h.adminAuthorizeSvc, entity.AdminKindBoxGetAwaitingReturnPermission))
|
|
}
|