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

include '../config/config.php';

$defaultLogo = 'assets/images/logo.png';
$logoUrl = $defaultLogo;
if (!empty($site_logo) && file_exists(__DIR__ . '/../' . $site_logo)) {
    $logoUrl = '../' . $site_logo;
}

echo json_encode(['logo' => $logoUrl]);
