<?php

namespace App\Http\Controllers\Documents;

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

class RejectDocumentController
{
    /**
     * @param Request $request
     * @param RejectDocumentLogic $logic
     * @return JsonResponse
     */
    public function reject(Request $request, RejectDocumentLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}