<?php

include_once 'model/service_model.php';

$service_model = new service_model();

$date = $_GET['date'] ?? null;
$booked = [];

if ($date) {
    $booked = $service_model->getBookedTimeSlots($date);
}

header('Content-Type: application/json');
echo json_encode($booked);
