<?php
/**
 * Dashboard Routes
 *
 * Unified dashboard endpoints using Pure V2.2 Controller
 *
* PHASE 5.6 UPDATED: Uses DashboardUnifiedController (Pure V2.2)
 */

namespace FleekDash\Routes\Groups;

use FleekDash\Libs\API\Route;
use FleekDash\Libs\API\RouteAuthMiddleware;
use FleekDash\Controllers\DashboardUnifiedController;

class DashboardRoutes
{
    public static function register(): void
    {
        // Use Pure V2.2 Controller (no legacy dependencies!)
        Route::get('dashboard/unified', [DashboardUnifiedController::class, 'get_unified_dashboard_data'],
            RouteAuthMiddleware::authenticated());

        Route::get('dashboard/performance', [DashboardUnifiedController::class, 'get_performance_metrics'],
            RouteAuthMiddleware::authenticated());

        Route::post('dashboard/cache', [DashboardUnifiedController::class, 'manage_cache'],
            RouteAuthMiddleware::admin());
    }
}
