feat(storegod_v1): ping returns name+role (parity with STOREGOD)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
840e1c4359
commit
720afcaee4
@ -20,7 +20,8 @@ router = APIRouter(tags=["storegod/v1"])
|
||||
@router.get("/ping")
|
||||
async def ping(ident=Depends(require_token)):
|
||||
"""Connection test + identity — lights PRICEGOD's green dot and store chip."""
|
||||
return {"ok": True, "store": ident["store"], "plan": ident["plan"], "version": __version__}
|
||||
return {"ok": True, "store": ident["store"], "plan": ident["plan"],
|
||||
"name": ident.get("name"), "role": ident.get("role"), "version": __version__}
|
||||
|
||||
|
||||
@router.get("/inventory/lookup")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user