Spaces:
Sleeping
Sleeping
Claude Code Claude Opus 4.6 commited on
Commit ·
ccc6c75
1
Parent(s): bfc56a4
Claude Code: update health endpoint to return 'healthy' status for external monitoring
Browse files
app.py
CHANGED
|
@@ -42,8 +42,8 @@ def get_app():
|
|
| 42 |
|
| 43 |
@app.get("/health")
|
| 44 |
async def health():
|
| 45 |
-
"""Health check endpoint."""
|
| 46 |
-
return {"status": "
|
| 47 |
|
| 48 |
@app.on_event("startup")
|
| 49 |
async def startup():
|
|
|
|
| 42 |
|
| 43 |
@app.get("/health")
|
| 44 |
async def health():
|
| 45 |
+
"""Health check endpoint for external monitoring."""
|
| 46 |
+
return {"status": "healthy", "uptime": round(time.time() - START_TIME, 2)}
|
| 47 |
|
| 48 |
@app.on_event("startup")
|
| 49 |
async def startup():
|