From bcf618ef3058f960c9b125d4cbd0090b9a057ef2 Mon Sep 17 00:00:00 2001 From: Vladislav Leonkev Date: Fri, 14 Nov 2025 17:00:52 +0100 Subject: [PATCH 1/2] approuter - remove the "target" route property - rewriting is not used - Docu: "Since there is no target property for that route, no path rewriting will take place." --- .deploy/app-router/xs-app.json | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.deploy/app-router/xs-app.json b/.deploy/app-router/xs-app.json index 02a1f80..187203b 100644 --- a/.deploy/app-router/xs-app.json +++ b/.deploy/app-router/xs-app.json @@ -9,43 +9,36 @@ }, { "source": "^/admin/(.*)$", - "target": "/admin/$1", "destination": "bookstore-api", "csrfProtection": true }, { "source": "^/browse/(.*)$", - "target": "/browse/$1", "destination": "bookstore-api", "csrfProtection": true }, { "source": "^/user/(.*)$", - "target": "/user/$1", "destination": "bookstore-api", "csrfProtection": true }, { "source": "^/odata/v4/orders/(.*)$", - "target": "/odata/v4/orders/$1", "destination": "orders-api", "csrfProtection": true }, { "source": "^/reviews/(.*)$", - "target": "/reviews/$1", "destination": "reviews-api", "csrfProtection": true }, { "source": "^/rest/catalog/(.*)$", - "target": "/rest/catalog/$1", "destination": "bookstore-api", "csrfProtection": true }, { "source": "^/rest/reviews/(.*)$", - "target": "/rest/reviews/$1", "destination": "reviews-api", "csrfProtection": true } From 4af42f21366454493cff71f1ca8ad76ae99306b0 Mon Sep 17 00:00:00 2001 From: Vladislav Leonkev Date: Fri, 21 Nov 2025 12:28:00 +0100 Subject: [PATCH 2/2] simplify source regex --- .deploy/app-router/xs-app.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.deploy/app-router/xs-app.json b/.deploy/app-router/xs-app.json index 187203b..39ec97c 100644 --- a/.deploy/app-router/xs-app.json +++ b/.deploy/app-router/xs-app.json @@ -8,37 +8,37 @@ "cacheControl": "no-cache, no-store, must-revalidate" }, { - "source": "^/admin/(.*)$", + "source": "^/admin/", "destination": "bookstore-api", "csrfProtection": true }, { - "source": "^/browse/(.*)$", + "source": "^/browse/", "destination": "bookstore-api", "csrfProtection": true }, { - "source": "^/user/(.*)$", + "source": "^/user/", "destination": "bookstore-api", "csrfProtection": true }, { - "source": "^/odata/v4/orders/(.*)$", + "source": "^/odata/v4/orders/", "destination": "orders-api", "csrfProtection": true }, { - "source": "^/reviews/(.*)$", + "source": "^/reviews/", "destination": "reviews-api", "csrfProtection": true }, { - "source": "^/rest/catalog/(.*)$", + "source": "^/rest/catalog/", "destination": "bookstore-api", "csrfProtection": true }, { - "source": "^/rest/reviews/(.*)$", + "source": "^/rest/reviews/", "destination": "reviews-api", "csrfProtection": true }