Роутер работает нормально в process v2

This commit is contained in:
2026-04-07 14:09:51 +03:00
parent 5d77ab1a88
commit 6b74d410cd
1748 changed files with 216679 additions and 14208 deletions
+4 -8
View File
@@ -3,9 +3,9 @@ import logging
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from app.core.logging_setup import configure_logging
from app.core.error_handlers import register_error_handlers
from app.modules.application import ModularApplication
from app.infra.logging_setup import configure_logging
from app.infra.error_handlers import register_error_handlers
from app.core.application import ModularApplication
def _configure_logging() -> None:
@@ -28,10 +28,6 @@ def create_app() -> FastAPI:
)
app.include_router(modules.api.public_router())
app.include_router(modules.rag.public_router())
app.include_router(modules.rag.internal_router())
app.include_router(modules.rag_repo.internal_router())
register_error_handlers(app)
@app.on_event("startup")
@@ -40,7 +36,7 @@ def create_app() -> FastAPI:
@app.get("/health")
async def health() -> dict:
return {"status": "ok"}
return modules.health_payload()
return app