Fix getting tennat

This commit is contained in:
Urtzi Alfaro
2025-09-12 19:31:24 +02:00
parent 55f31a3630
commit 4c21a5e1b2
5 changed files with 46 additions and 34 deletions

View File

@@ -41,7 +41,7 @@ async def get_tenant_members(request: Request, tenant_id: str = Path(...)):
@router.get("/user/{user_id}")
async def get_user_tenants(request: Request, user_id: str = Path(...)):
"""Get all tenant memberships for a user (admin only)"""
return await _proxy_to_tenant_service(request, f"/api/v1/tenants/user/{user_id}")
return await _proxy_to_tenant_service(request, f"/api/v1/tenants/users/{user_id}")
@router.get("/user/{user_id}/owned")
async def get_user_owned_tenants(request: Request, user_id: str = Path(...)):