Роутер работает нормально в process v2
This commit is contained in:
+4
-8
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user