query('SELECT 1'); http_response_code(200); echo json_encode([ 'status' => 'ok', 'app' => 'NexusHR', 'time' => gmdate('c'), ], JSON_UNESCAPED_SLASHES); } catch (Throwable $e) { http_response_code(500); echo json_encode([ 'status' => 'error', 'time' => gmdate('c'), ], JSON_UNESCAPED_SLASHES); }