<?php

namespace App\Http\Controllers\Currencies\Rates;

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

class FetchRateController
{
    /**
     * @param Request $request
     * @param FetchRateLogic $logic
     * @return JsonResponse
     */
    public function fetch(Request $request, FetchRateLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}