<?php
// /health
header('Content-Type: application/json');

// Optionally: check DB or critical dependencies here
/*
try {
    $pdo = new PDO($dsn, $user, $pass, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);
    $pdo->query('SELECT 1');
} catch (Throwable $e) {
    http_response_code(500);
    echo json_encode(['status' => 'error', 'message' => 'DB unavailable']);
    exit;
}
*/

echo json_encode(['status' => 'ok']);
