# app/modules/customers/routes/admin.py """ Customers module admin routes. This module wraps the existing admin customers routes and adds module-based access control. Routes are re-exported from the original location with the module access dependency. """ from fastapi import APIRouter, Depends from app.api.deps import require_module_access # Import original router (direct import to avoid circular dependency) from app.api.v1.admin.customers import router as original_router # Create module-aware router admin_router = APIRouter( prefix="/customers", dependencies=[Depends(require_module_access("customers"))], ) # Re-export all routes from the original module with module access control for route in original_router.routes: admin_router.routes.append(route)