<?php
require 'config/db.php';

try {
    $stmt = $pdo->query("SELECT * FROM site_config LIMIT 1");
    $data = $stmt->fetch();
    echo json_encode(['success' => true, 'data' => $data]);
} catch (PDOException $e) {
    echo json_encode(['success' => false, 'message' => $e->getMessage()]);
}
?>
