<?php

namespace App\Http\Controllers\Bookings;

use App\Classes\Modules\Bookings\ControllersLogic\CreateBookingLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

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