[crawler_platform 삭제]
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user