Added a health-check endpoint

This commit is contained in:
Donkie
2023-07-02 22:55:29 +02:00
parent 0cdb496a1d
commit 8b4b1bd3e9
2 changed files with 11 additions and 0 deletions

View File

@@ -32,6 +32,13 @@ async def itemnotfounderror_exception_handler(_request: Request, exc: ItemNotFou
)
# Add health check endpoint
@app.get("/health")
async def health() -> models.HealthCheck:
"""Return a health check."""
return {"status": "healthy"}
app.include_router(filament.router)
app.include_router(spool.router)
app.include_router(vendor.router)