Fixed health check return type
This commit is contained in:
@@ -36,7 +36,7 @@ async def itemnotfounderror_exception_handler(_request: Request, exc: ItemNotFou
|
|||||||
@app.get("/health")
|
@app.get("/health")
|
||||||
async def health() -> models.HealthCheck:
|
async def health() -> models.HealthCheck:
|
||||||
"""Return a health check."""
|
"""Return a health check."""
|
||||||
return {"status": "healthy"}
|
return models.HealthCheck(status="healthy")
|
||||||
|
|
||||||
|
|
||||||
app.include_router(filament.router)
|
app.include_router(filament.router)
|
||||||
|
|||||||
Reference in New Issue
Block a user