<?php

namespace App\Http\Controllers\Currencies\Rates;

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

class CalculateRateController
{
    /**
     * @param Request $request
     * @param CalculateRateLogic $logic
     * @return JsonResponse
     */
    public function calculate(Request $request, CalculateRateLogic $logic): JsonResponse {
        return $logic->execute($request);
    }
}