# app/modules/cms/routes/api/vendor.py
"""
CMS module vendor API routes.

Aggregates all vendor CMS routes:
- /content-pages/* - Content page management
- /media/* - Media library management
"""

from fastapi import APIRouter

from .vendor_content_pages import vendor_content_pages_router
from .vendor_media import vendor_media_router

# Route configuration for auto-discovery
ROUTE_CONFIG = {
    "priority": 100,  # Register last (CMS has catch-all slug routes)
}

vendor_router = APIRouter()
router = vendor_router  # Alias for discovery compatibility

# Aggregate all CMS vendor routes
vendor_router.include_router(vendor_content_pages_router, tags=["vendor-content-pages"])
vendor_router.include_router(vendor_media_router, tags=["vendor-media"])
