forked from ebhomengo/niki
14 lines
394 B
Go
14 lines
394 B
Go
|
package adminagenthandler
|
||
|
|
||
|
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("/admins")
|
||
|
|
||
|
r.GET("/agents", h.GetAllAgent, middleware.Auth(h.authSvc), middleware.AdminAuthorization(h.authorizeSvc, entity.AdminAdminGetAllAgentPermission))
|
||
|
}
|