<?php

namespace App\Http\Controllers\Currencies\Rates;

use App\Classes\Modules\Currencies\ControllersLogic\Rates\UpdateRateLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

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

}