<?php

namespace App\Http\Controllers\Banks;

use App\Classes\Modules\Banks\ControllersLogic\CreateBankLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

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