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:
type-two 2026-07-07 22:23:29 +10:00
parent 840e1c4359
commit 720afcaee4

View File

@ -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")