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": {