<?php

namespace App\Http\Controllers\Transports;

use App\Classes\Modules\Transports\ControllersLogic\FetchTransportLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

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

}
