<?php

namespace App\Http\Controllers\Bookings;

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

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