<?php

namespace App\Http\Controllers\Transports;

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

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

}
