Spaces:
Sleeping
Sleeping
Commit ·
321f95c
1
Parent(s): a29baaf
add "/"
Browse files- api/server.py +5 -0
api/server.py
CHANGED
|
@@ -315,6 +315,11 @@ def _batch_result_from_ok(result: ConversionResult) -> BatchFileResult:
|
|
| 315 |
# System endpoints
|
| 316 |
# ---------------------------------------------------------------------------
|
| 317 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 318 |
@app.get("/health", tags=["System"], summary="Liveness check")
|
| 319 |
async def health():
|
| 320 |
"""Return server status and uptime in seconds."""
|
|
|
|
| 315 |
# System endpoints
|
| 316 |
# ---------------------------------------------------------------------------
|
| 317 |
|
| 318 |
+
@app.get("/", tags=["System"], summary="Root", include_in_schema=False)
|
| 319 |
+
async def root():
|
| 320 |
+
return {"service": "reconciliation-file-processing-service", "version": "2.1.0", "status": "running"}
|
| 321 |
+
|
| 322 |
+
|
| 323 |
@app.get("/health", tags=["System"], summary="Liveness check")
|
| 324 |
async def health():
|
| 325 |
"""Return server status and uptime in seconds."""
|