<?php
require_once __DIR__ . '/../../config/db.php';

$tables = $conn->query("
    SELECT id, nom, statut
    FROM tables_restaurant
    ORDER BY nom
")->fetchAll(PDO::FETCH_ASSOC);

echo json_encode($tables);
