Refactor: move middleware definition (#6552)

This commit is contained in:
Robert Brennan
2025-01-30 15:32:26 -05:00
committed by GitHub
parent 5dd4810f58
commit 27fdae6ecc
13 changed files with 130 additions and 145 deletions

View File

@@ -21,7 +21,7 @@ from openhands.server.routes.public import app as public_api_router
from openhands.server.routes.security import app as security_api_router
from openhands.server.routes.settings import app as settings_router
from openhands.server.routes.trajectory import app as trajectory_router
from openhands.server.shared import conversation_manager, openhands_config
from openhands.server.shared import conversation_manager
@asynccontextmanager
@@ -36,7 +36,6 @@ app = FastAPI(
version=__version__,
lifespan=_lifespan,
)
openhands_config.attach_middleware(app)
@app.get('/health')