<?php

namespace App\Http\Controllers\Segments;

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

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

}