From 669b2d1eda43e8fe08ed27448504deee38f4b9c8 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Fri, 26 Jun 2026 04:57:01 +0000 Subject: [PATCH] fix(product): add PathPrefix transform to gateway product-route MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add PathPrefix /api/product after PathRemovePrefix /api/products so the gateway correctly rewrites: /api/products → /api/product /api/products/123 → /api/product/123 /api/products/categories → /api/product/categories Previously the strip-only transform forwarded to / which returned 404. --- src/ApiGateway/appsettings.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ApiGateway/appsettings.json b/src/ApiGateway/appsettings.json index 74c7ae9..56df995 100644 --- a/src/ApiGateway/appsettings.json +++ b/src/ApiGateway/appsettings.json @@ -26,7 +26,10 @@ "product-route": { "ClusterId": "product-cluster", "Match": { "Path": "/api/products/{**catch-all}" }, - "Transforms": [{ "PathRemovePrefix": "/api/products" }] + "Transforms": [ + { "PathRemovePrefix": "/api/products" }, + { "PathPrefix": "/api/product" } + ] }, "notification-route": { "ClusterId": "notification-cluster",