Spaces:
Sleeping
Sleeping
Commit ·
0b750b6
1
Parent(s): 5897e3e
ok
Browse files- api/server.py +0 -30
api/server.py
CHANGED
|
@@ -327,36 +327,6 @@ async def ping():
|
|
| 327 |
return {"message": f"{APP_NAME} is running..."}
|
| 328 |
|
| 329 |
|
| 330 |
-
@app.get("/health", tags=["System"], summary="Liveness check")
|
| 331 |
-
async def health():
|
| 332 |
-
"""Return server status and uptime in seconds."""
|
| 333 |
-
return {
|
| 334 |
-
"success": True,
|
| 335 |
-
"status": "ok",
|
| 336 |
-
"version": "2.1.0",
|
| 337 |
-
"uptime_seconds": round(time.time() - _START_TIME, 2),
|
| 338 |
-
"timestamp": datetime.now(timezone.utc).isoformat(),
|
| 339 |
-
}
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
@app.get("/info", tags=["System"], summary="Server and environment information")
|
| 343 |
-
async def info():
|
| 344 |
-
"""Return application version, platform details, and operational limits."""
|
| 345 |
-
import platform
|
| 346 |
-
|
| 347 |
-
return {
|
| 348 |
-
"success": True,
|
| 349 |
-
"app": "MarkItDown API",
|
| 350 |
-
"version": "2.1.0",
|
| 351 |
-
"python_version": platform.python_version(),
|
| 352 |
-
"platform": platform.system(),
|
| 353 |
-
"uptime_seconds": round(time.time() - _START_TIME, 2),
|
| 354 |
-
"max_upload_mb": MAX_UPLOAD_BYTES // (1024 * 1024),
|
| 355 |
-
"supported_extensions": len(SUPPORTED_EXTENSIONS),
|
| 356 |
-
"timestamp": datetime.now(timezone.utc).isoformat(),
|
| 357 |
-
}
|
| 358 |
-
|
| 359 |
-
|
| 360 |
@app.get("/formats", tags=["System"], summary="Supported file formats by category")
|
| 361 |
async def list_formats():
|
| 362 |
"""Return all supported file extensions, grouped by document category."""
|
|
|
|
| 327 |
return {"message": f"{APP_NAME} is running..."}
|
| 328 |
|
| 329 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 330 |
@app.get("/formats", tags=["System"], summary="Supported file formats by category")
|
| 331 |
async def list_formats():
|
| 332 |
"""Return all supported file extensions, grouped by document category."""
|