<?php

namespace App\Http\Controllers\Documents;

use App\Classes\Modules\Documents\ControllersLogic\ListDocumentLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

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

}