From 9eee2b523db72609ecb0a832cfa8d91db82f973f Mon Sep 17 00:00:00 2001 From: TekH Date: Thu, 11 Jun 2026 11:38:19 +0200 Subject: [PATCH] Refactor YARP routes and update configurations Renamed the `receiver-ui-receiver` route to `receiver-ui-root` and updated its `Order` value from `100` to `300`. Changed the `Match` path for `receiver-ui-root` from `/receiver/{**catch-all}` to `/`. Removed the `receiver-ui-login` route entirely. Added a `Transforms` section to the `receiver-ui-root` and `receiver-ui-sender` routes, setting the path to `/index.html`. --- EnvelopeGenerator.API/yarp.json | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/EnvelopeGenerator.API/yarp.json b/EnvelopeGenerator.API/yarp.json index e6608325..7e0cd315 100644 --- a/EnvelopeGenerator.API/yarp.json +++ b/EnvelopeGenerator.API/yarp.json @@ -1,21 +1,16 @@ { "ReverseProxy": { "Routes": { - "receiver-ui-receiver": { + "receiver-ui-root": { "ClusterId": "receiver-ui", - "Order": 100, + "Order": 300, "Match": { - "Path": "/receiver/{**catch-all}", + "Path": "/", "Methods": [ "GET", "HEAD" ] - } - }, - "receiver-ui-login": { - "ClusterId": "receiver-ui", - "Order": 100, - "Match": { - "Path": "/login/{**catch-all}", - "Methods": [ "GET", "HEAD" ] - } + }, + "Transforms": [ + { "PathSet": "/index.html" } + ] }, "receiver-ui-sender": { "ClusterId": "receiver-ui", @@ -23,7 +18,10 @@ "Match": { "Path": "/sender/{**catch-all}", "Methods": [ "GET", "HEAD" ] - } + }, + "Transforms": [ + { "PathSet": "/index.html" } + ] }, "receiver-ui-envelope": { "ClusterId": "receiver-ui",