Fixed health check return type

This commit is contained in:
Donkie
2023-07-04 12:10:45 +02:00
parent d201f17e5e
commit 899b4ee77d

View File

@@ -36,7 +36,7 @@ async def itemnotfounderror_exception_handler(_request: Request, exc: ItemNotFou
@app.get("/health")
async def health() -> models.HealthCheck:
"""Return a health check."""
return {"status": "healthy"}
return models.HealthCheck(status="healthy")
app.include_router(filament.router)