This commit is contained in:
Pasha 2025-04-22 20:40:00 +03:00 committed by skeris
parent 2833750049
commit 4880b37767

@ -137,6 +137,7 @@ var pathCheckMap = map[string]func(*OwnerShip, *fiber.Ctx) (bool, error){
"PUT /account/account/leadtarget": (*OwnerShip).CheckLeadTarget,
}
// todo подключить проверить
func OwnerShipMiddleware(o *OwnerShip) fiber.Handler {
return func(c *fiber.Ctx) error {
methodPath := fmt.Sprintf("%s %s", c.Method(), c.Path())