<?php

namespace App\Http\Controllers\Currencies;

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

class RateCalculateCurrencyController
{
    /**
     * @param Request $request
     * @param RateCalculateCurrencyLogic $logic
     * @return JsonResponse
     */
    public function convert(Request $request, RateCalculateCurrencyLogic $logic): JsonResponse {
        return $logic->execute($request);
    }
}