<?php
/**
 * System Routes and Middleware Configuration
 */

return [
    // Define global middlewares classes if any
    'middlewares' => [
        'auth' => \Core\Middlewares\AuthMiddleware::class,
    ],

    // Modules that require authentication
    'protected_modules' => [
        'Core',
        'Finance',
        'Health',
        'Journal',
        'Goals',
        'Habits',
        'Todo',
        'Calendar',
        'Vault',
        'Behavior',
        'Spiritual',
        'Education',
        'System',
        'Monthlyplan',
        'Analytics'
    ],

    // Modules that are public
    'public_modules' => [
        'Auth'
    ],
    
    // Explicit route overrides if needed (Path => Controller@Method)
    'explicit_routes' => [
        'menu' => 'HomeController@menu',
        // 'finance/dashboard' => 'FinanceController@index',
    ]
];
