<?php

declare(strict_types=1);

require_once __DIR__ . '/../includes/bootstrap.php';

$config = require __DIR__ . '/../config/config.php';

auth_start_session();

if (auth_is_logged_in()) {
    header('Location: ' . auth_default_dashboard_path());
    exit;
}

header('Location: ' . Constants::APP_ROOT . '/login.php');
exit;
