"""Config API routes - split into multiple modules for maintainability.

This package provides configuration management endpoints including:
- System configuration (/config/system)
- Provider and model configuration (/config/providers, /config/models, etc.)
- Style configuration (/config/styles)
- Health monitoring (/config/health)
- Configuration validation (/config/validate)
- Admin operations (/admin/*)
- Storage utilities (/storage/*)
"""

from fastapi import APIRouter

from . import system, providers, styles, health, validation, admin, storage

# Create main router
router = APIRouter()

# Include all sub-routers
router.include_router(system.router)
router.include_router(providers.router)
router.include_router(styles.router)
router.include_router(health.router)
router.include_router(validation.router)
router.include_router(admin.router)
router.include_router(storage.router)

# Export models for backward compatibility
from .models import (
    SignUrlRequest,
    SystemConfig,
    ModelRegistrationRequest,
    ProviderKeyField,
    ProviderConfigResponse,
)

__all__ = [
    "router",
    "SignUrlRequest",
    "SystemConfig",
    "ModelRegistrationRequest",
    "ProviderKeyField",
    "ProviderConfigResponse",
]
