fix: example showing get user details

This commit is contained in:
Chris Milne 2026-06-10 10:39:13 +01:00
parent 5c5cb137fc
commit 8c79da4fed

View file

@ -98,3 +98,20 @@ async def test_hub_access(headers: header_dependency, client: http_client_depend
}
return response
@router.get("/hub/user")
async def test_hub_access(headers: header_dependency, client: http_client_dependency):
hub_response = await client.get(
f"http://localhost:8001/api/v1/user/self/db",
headers=headers
)
response = {
"response": {
"status": hub_response.status_code,
"json": hub_response.json()
}
}
return response