<?php

namespace App\Http\Controllers\Delivery;

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

class CreateDeliveryOrderController
{
    /**
     * @param Request $request
     * @param CreateDeliveryOrderLogic $createDeliveryOrderLogic
     * @return JsonResponse
     */
    public function create(Request $request, CreateDeliveryOrderLogic $createDeliveryOrderLogic): JsonResponse
    {
        return $createDeliveryOrderLogic->execute($request);
    }
}