<?php declare(strict_types=1); if (!defined('DASHBOARD_ROOT')) define('DASHBOARD_ROOT', realpath(__DIR__ . '/..')); require_once DASHBOARD_ROOT . '/core/bootstrap.php'; if (!AuthChain::isAuthenticated()) { http_response_code(401); header('Content-Type: application/json'); exit(json_encode(['success' => false, 'error' => 'Unauthorized'])); } 