Files
2026-07-13 11:59:58 +08:00

13 lines
446 B
Python

from .config import GatewayConfig, get_gateway_config
__all__ = ["app", "create_app", "GatewayConfig", "get_gateway_config"]
def __getattr__(name: str):
"""Lazily expose the FastAPI app without initializing it on package import."""
if name in {"app", "create_app"}:
from .app import app, create_app
return app if name == "app" else create_app
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")