Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -488,7 +488,9 @@ async def get_categories(
|
|
| 488 |
log("ERROR", "categories.error", user_id=user_id or "anonymous", ip=ip, error=str(e))
|
| 489 |
return {"categories": []}
|
| 490 |
|
| 491 |
-
|
|
|
|
|
|
|
| 492 |
@app.get("/api/health")
|
| 493 |
async def health():
|
| 494 |
return {"status": "ok", "timestamp": datetime.now(timezone.utc).isoformat()}
|
|
|
|
| 488 |
log("ERROR", "categories.error", user_id=user_id or "anonymous", ip=ip, error=str(e))
|
| 489 |
return {"categories": []}
|
| 490 |
|
| 491 |
+
@app.get("/")
|
| 492 |
+
async def root():
|
| 493 |
+
return {"status": "ok"}
|
| 494 |
@app.get("/api/health")
|
| 495 |
async def health():
|
| 496 |
return {"status": "ok", "timestamp": datetime.now(timezone.utc).isoformat()}
|