2026-03-31 19:19:04 +08:00
|
|
|
"""Internal routers still surfaced by the Python host."""
|
|
|
|
|
|
2026-03-21 12:57:09 +08:00
|
|
|
from fastapi import APIRouter
|
|
|
|
|
|
|
|
|
|
|
2026-03-31 19:19:04 +08:00
|
|
|
def _build_python_internal_router() -> APIRouter:
|
|
|
|
|
"""Internal APIs that still belong to the Python host/runtime."""
|
|
|
|
|
return APIRouter()
|
|
|
|
|
|
|
|
|
|
|
2026-04-03 14:59:58 +08:00
|
|
|
# Legacy internal gateway bridge 与 internal tunnel 模块仍保留在 `src.api.internal.*`
|
2026-03-31 19:19:04 +08:00
|
|
|
# 里给测试与过渡逻辑复用,但 Python host 已不再公开任何 `/api/internal/*` 路由。
|
|
|
|
|
python_internal_router = _build_python_internal_router()
|
|
|
|
|
router = python_internal_router
|
2026-03-17 20:22:12 +08:00
|
|
|
|
2026-03-31 19:19:04 +08:00
|
|
|
__all__ = [
|
|
|
|
|
"python_internal_router",
|
|
|
|
|
"router",
|
|
|
|
|
]
|