<?php

namespace App\Http\Controllers\Banks;

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

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