<?php

namespace App\Http\Controllers\Currencies\Rates;

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

class CreateRateController
{
    /**
     * @param Request $request
     * @param CreateRateLogic $logic
     * @return JsonResponse
     */
    public function create(Request $request, CreateRateLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}