Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- src/lexenvs/harbor_app.py +10 -0
src/lexenvs/harbor_app.py
CHANGED
|
@@ -83,6 +83,16 @@ def create_harbor_app() -> FastAPI:
|
|
| 83 |
|
| 84 |
harbor_app.include_router(tasks.router, prefix="/api")
|
| 85 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
@harbor_app.get("/health/live")
|
| 87 |
async def liveness() -> dict[str, str]:
|
| 88 |
"""Lightweight liveness probe."""
|
|
|
|
| 83 |
|
| 84 |
harbor_app.include_router(tasks.router, prefix="/api")
|
| 85 |
|
| 86 |
+
@harbor_app.get("/")
|
| 87 |
+
async def root() -> dict[str, str]:
|
| 88 |
+
"""Root endpoint — confirms the server is running."""
|
| 89 |
+
return {
|
| 90 |
+
"service": "LexEnvs Harbor Environment",
|
| 91 |
+
"docs": "/docs",
|
| 92 |
+
"health": "/health/live",
|
| 93 |
+
"tasks": "/api/tasks",
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
@harbor_app.get("/health/live")
|
| 97 |
async def liveness() -> dict[str, str]:
|
| 98 |
"""Lightweight liveness probe."""
|