From eabd5eedc7137b7b87762e010665926a826532a9 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 7 Nov 2025 21:49:31 +0000 Subject: [PATCH] fix: Route dashboard API requests to orchestrator service instead of inventory The gateway was incorrectly routing /tenants/{id}/dashboard/* requests to the inventory service, but the dashboard endpoints are actually implemented in the orchestrator service. Changed: - gateway/app/routes/tenant.py:300 from _proxy_to_inventory_service to _proxy_to_orchestrator_service This fixes 404 errors when loading the dashboard in demo mode. --- gateway/app/routes/tenant.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gateway/app/routes/tenant.py b/gateway/app/routes/tenant.py index 3ac72008..889f4995 100644 --- a/gateway/app/routes/tenant.py +++ b/gateway/app/routes/tenant.py @@ -294,10 +294,10 @@ async def proxy_tenant_stock(request: Request, tenant_id: str = Path(...), path: @router.api_route("/{tenant_id}/dashboard/{path:path}", methods=["GET", "POST", "PUT", "DELETE", "OPTIONS"]) async def proxy_tenant_dashboard(request: Request, tenant_id: str = Path(...), path: str = ""): - """Proxy tenant dashboard requests to inventory service""" - # The inventory service dashboard endpoints are tenant-scoped: /api/v1/tenants/{tenant_id}/dashboard/{path} + """Proxy tenant dashboard requests to orchestrator service""" + # The orchestrator service dashboard endpoints are tenant-scoped: /api/v1/tenants/{tenant_id}/dashboard/{path} target_path = f"/api/v1/tenants/{tenant_id}/dashboard/{path}".rstrip("/") - return await _proxy_to_inventory_service(request, target_path, tenant_id=tenant_id) + return await _proxy_to_orchestrator_service(request, target_path, tenant_id=tenant_id) @router.api_route("/{tenant_id}/transformations", methods=["GET", "POST", "PUT", "DELETE", "OPTIONS"]) async def proxy_tenant_transformations_base(request: Request, tenant_id: str = Path(...)):