Admin: add Garmin sync status panel
New /api/admin/garmin-sync (GET) and /api/admin/garmin-sync/run (POST) endpoints mirror the Strava equivalents, reading _garmin_sync_status.json per user and exposing a run-now button. Admin page shows the Garmin table below the Strava one, with auth_error/api_error/ok badges and live polling while a sync is running.
This commit is contained in:
@@ -43,6 +43,8 @@ sync_secret: str = ""
|
||||
_db = None
|
||||
_strava_sync_running = False
|
||||
_strava_sync_lock = threading.Lock()
|
||||
_garmin_sync_running = False
|
||||
_garmin_sync_lock = threading.Lock()
|
||||
|
||||
# ── Constants ─────────────────────────────────────────────────────────────────
|
||||
|
||||
|
||||
Reference in New Issue
Block a user