2026-03-31 19:19:04 +08:00
|
|
|
"""Public-facing API routers.
|
|
|
|
|
|
|
|
|
|
Keep the compatibility frontdoor surface explicit so Rust can take ownership of
|
|
|
|
|
that manifest later without re-auditing the entire Python public app shell.
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
from __future__ import annotations
|
2025-12-10 20:52:44 +08:00
|
|
|
|
|
|
|
|
from fastapi import APIRouter
|
|
|
|
|
|
2026-03-31 19:19:04 +08:00
|
|
|
from .support import python_public_support_router
|
2025-12-10 20:52:44 +08:00
|
|
|
|
|
|
|
|
router = APIRouter()
|
2026-03-31 19:19:04 +08:00
|
|
|
router.include_router(python_public_support_router)
|
|
|
|
|
|
|
|
|
|
__all__ = ["frontdoor_compat_router", "python_public_support_router", "router"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def __getattr__(name: str) -> object:
|
|
|
|
|
if name == "frontdoor_compat_router":
|
|
|
|
|
from .compat import frontdoor_compat_router
|
|
|
|
|
|
|
|
|
|
return frontdoor_compat_router
|
|
|
|
|
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|