<?php

namespace App\Http\Controllers\Currencies;

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

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