From 24e54886a17504b98071a13fa429142d2ea523eb Mon Sep 17 00:00:00 2001 From: MSuMshk <2039814060@qq.com> Date: Wed, 3 Dec 2025 15:03:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=80=82=E9=85=8DYARP=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../appsettings.Development.json | 13 +++++-------- src/Gateway/TakeoutSaaS.ApiGateway/appsettings.json | 13 +++++-------- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/src/Gateway/TakeoutSaaS.ApiGateway/appsettings.Development.json b/src/Gateway/TakeoutSaaS.ApiGateway/appsettings.Development.json index 6c70a10..0508d91 100644 --- a/src/Gateway/TakeoutSaaS.ApiGateway/appsettings.Development.json +++ b/src/Gateway/TakeoutSaaS.ApiGateway/appsettings.Development.json @@ -3,23 +3,20 @@ "Enabled": false }, "ReverseProxy": { - "Routes": [ - { - "RouteId": "admin-route", + "Routes": { + "admin-route": { "ClusterId": "admin", "Match": { "Path": "/api/admin/{**catch-all}" } }, - { - "RouteId": "mini-route", + "mini-route": { "ClusterId": "mini", "Match": { "Path": "/api/mini/{**catch-all}" } }, - { - "RouteId": "user-route", + "user-route": { "ClusterId": "user", "Match": { "Path": "/api/user/{**catch-all}" } } - ], + }, "Clusters": { "admin": { "Destinations": { diff --git a/src/Gateway/TakeoutSaaS.ApiGateway/appsettings.json b/src/Gateway/TakeoutSaaS.ApiGateway/appsettings.json index a2f3c3c..4bd7d04 100644 --- a/src/Gateway/TakeoutSaaS.ApiGateway/appsettings.json +++ b/src/Gateway/TakeoutSaaS.ApiGateway/appsettings.json @@ -36,23 +36,20 @@ "OtlpEndpoint": "http://localhost:4317" }, "ReverseProxy": { - "Routes": [ - { - "RouteId": "admin-route", + "Routes": { + "admin-route": { "ClusterId": "admin", "Match": { "Path": "/api/admin/{**catch-all}" } }, - { - "RouteId": "mini-route", + "mini-route": { "ClusterId": "mini", "Match": { "Path": "/api/mini/{**catch-all}" } }, - { - "RouteId": "user-route", + "user-route": { "ClusterId": "user", "Match": { "Path": "/api/user/{**catch-all}" } } - ], + }, "Clusters": { "admin": { "Destinations": {