<?php

namespace App\Http\Controllers\Currencies\History;

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

class ListCurrencyRateHistory
{
    /**
     * @param Request $request
     * @param ListRatesLogic $logic
     * @return JsonResponse
     */
    public function list(Request $request, ListCurrencyRateHistoryLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}