<?php

declare(strict_types=1);

/**
 * Root URL handler for the PHP built-in server (no default index otherwise → 404 on /).
 */
require __DIR__ . '/includes/init.php';

if (autoscan_is_logged_in()) {
    header('Location: /app/dashboard.php');
} else {
    header('Location: /login.php');
}
exit;
