<?php

namespace App\Http\Controllers\Segments;

use App\Classes\Modules\Segments\ControllersLogic\UpdateSegmentLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class UpdateSegmentController
{
    /**
     * @param Request $request
     * @param UpdateSegmentLogic $logic
     * @return JsonResponse
     */
    public function update(Request $request, UpdateSegmentLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}