# app/modules/catalog/routes/api/__init__.py
"""Catalog module API routes."""

from app.modules.catalog.routes.api.storefront import router as storefront_router

# Tag for OpenAPI documentation
STOREFRONT_TAG = "Catalog (Storefront)"

__all__ = [
    "storefront_router",
    "STOREFRONT_TAG",
    "admin_router",
    "store_router",
]


def __getattr__(name: str):
    """Lazy import routers to avoid circular dependencies."""
    if name == "router":
        from app.modules.catalog.routes.api.admin import router as admin_router
        return router
    if name == "router":
        from app.modules.catalog.routes.api.store import router as store_router
        return router
    raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
