[crawler_platform 삭제]

This commit is contained in:
LASTA_DEV01\lasta
2026-05-20 13:21:08 +09:00
parent be717a8f9a
commit fc69dfd063
173 changed files with 307 additions and 1982 deletions

View File

@@ -44,6 +44,7 @@ from ont_platform.api.deps import ( # noqa: E402
get_app_context,
initialize_app_context,
)
from ont_platform.api.product_backend import include_product_backend # noqa: E402
platform_config = importlib.import_module("ont_platform.config")
@@ -80,7 +81,7 @@ PLATFORM_VERSION = "0.0.1"
def _include_phase_routers(app: FastAPI) -> None:
"""Attach routers whose dependencies are enabled for the configured phase."""
settings = platform_config.load_settings()
enabled_routes: list[str] = []
enabled_routes: list[str] = ["product-backend"]
if settings.phase >= platform_config.Phase.TRAFILATURA:
try:
@@ -144,6 +145,7 @@ def create_app() -> FastAPI:
version=PLATFORM_VERSION,
lifespan=lifespan,
)
include_product_backend(app)
# ─── /health ──────────────────────────────────────────────────────
@app.get("/health", tags=["meta"])