diff --git a/crm/Routes/web.php b/crm/Routes/web.php index a642dc1..53439ad 100644 --- a/crm/Routes/web.php +++ b/crm/Routes/web.php @@ -66,6 +66,17 @@ $router->get('/', function() { exit(); }); +// --- DASHBOARD ROUTE --- +// Protect /dashboard route - require authentication +$router->get('/dashboard', function() { + if (!\App\Core\Auth::check()) { + header('Location: /login'); + exit(); + } + header('Location: /redirects'); + exit(); +}); + // --- SCANNER REDIRECTS --- // Legacy redirects for scanner compatibility