<?php

namespace App\Http\Controllers\Orders;

use App\Classes\Modules\Orders\ControllersLogic\CreateOrderLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class CreateOrderController
{
    /**
     * @param Request $request
     * @param CreateOrderLogic $logic
     * @return JsonResponse
     */
    public function create(Request $request, CreateOrderLogic $logic): JsonResponse
    {
        return $logic->execute($request);
    }
}