Skip to content

Commit a58a388

Browse files
Song Meoclaude
andcommitted
add /ping endpoint for latency diagnosis
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6f02f61 commit a58a388

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

nestor/rest_api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,12 @@ def get_devices(
371371
return DevicesResponse(devices=devices)
372372

373373

374+
@router.get("/cf3d/api/v1/ping")
375+
async def ping():
376+
"""Trivial async endpoint for latency diagnosis."""
377+
return {"ok": True}
378+
379+
374380
@router.get(
375381
"/cf3d/api/v1/boots",
376382
response_model=BootsResponse,

0 commit comments

Comments
 (0)