<?php

namespace App\Http\Controllers\Delivery;

use App\Classes\Modules\Delivery\ControllersLogic\CancelDeliveryOrderLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class CancelDeliveryOrderController
{
    /**
     * @param Request $request
     * @param CancelOrderLogic $logic
     * @return JsonResponse
     */
    public function cancel(Request $request, CancelDeliveryOrderLogic $logic): JsonResponse
    {
        return $logic->execute($request);
    }
}