<?php
header('Content-Type: application/json');
require_once '../config/database.php';

$database = Database::getInstance();
$db = $database->getConn();

if ($db) {
    echo json_encode([
        'success' => true,
        'message' => 'Database connection successful',
        'timestamp' => date('Y-m-d H:i:s')
    ]);
} else {
    echo json_encode([
        'success' => false,
        'message' => 'Database connection failed'
    ]);
}
?>