fix: ENG-QA-GAUNTLET-146 — Add GET /api/v1/status endpoint with formatted uptime #69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/eng-qa-gauntlet-146"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Automated fix for ENG-QA-GAUNTLET-146.
Create app/api/status.py with an endpoint returning server uptime. Use the existing app.utils.formatters.format_duration helper to convert the elapsed seconds since server start to a human-readable string (e.g., '2h 15m 30s'). Track server start time in a module-level variable set at import time. Return {"uptime": "2h 15m 30s", "started_at": "..."}. Register in app/api/router.py.