<?php
// index.php — Root redirect
require_once 'config/config.php';
require_once 'core/helpers.php';

if (isLoggedIn()) {
    header('Location: ' . BASE_URL . '/modules/dashboard/index.php');
} else {
    header('Location: ' . BASE_URL . '/modules/auth/login.php');
}
exit;
