Commit ·
7588d83
1
Parent(s): d171bc5
Add root endpoint
Browse files
app.py
CHANGED
|
@@ -126,6 +126,10 @@ app.add_middleware(
|
|
| 126 |
# Endpoints
|
| 127 |
# =============================================================================
|
| 128 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
@app.get("/health")
|
| 130 |
async def health():
|
| 131 |
return {"status": "healthy" if ready else "loading", "ready": ready}
|
|
|
|
| 126 |
# Endpoints
|
| 127 |
# =============================================================================
|
| 128 |
|
| 129 |
+
@app.get("/")
|
| 130 |
+
async def root():
|
| 131 |
+
return {"name": "PaperCircle Papers API", "status": "healthy" if ready else "loading", "docs": "/docs"}
|
| 132 |
+
|
| 133 |
@app.get("/health")
|
| 134 |
async def health():
|
| 135 |
return {"status": "healthy" if ready else "loading", "ready": ready}
|