From 4770733b261254111975380277a041f75fd14760 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Wed, 17 Apr 2024 15:49:25 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E6=96=B0=E5=A2=9E=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Gateway/appsettings.json | 4 +++- Src/Gateway/ocelot.json | 30 ++++++++++++++++++++++-------- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/Src/Gateway/appsettings.json b/Src/Gateway/appsettings.json index 68b1359a..508d6f2a 100644 --- a/Src/Gateway/appsettings.json +++ b/Src/Gateway/appsettings.json @@ -12,6 +12,8 @@ "Canteen", "Scheduled", "User", - "Sys" + "Sys", + "Visitor", + "Message" ] } diff --git a/Src/Gateway/ocelot.json b/Src/Gateway/ocelot.json index 52cdcdf4..26b30a73 100644 --- a/Src/Gateway/ocelot.json +++ b/Src/Gateway/ocelot.json @@ -35,10 +35,6 @@ }, { "UpstreamPathTemplate": "/api/user/{url}", - "UpstreamHttpMethod": [ - "Get", - "Post" - ], "DownstreamPathTemplate": "/api/{url}", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ @@ -50,10 +46,6 @@ }, { "UpstreamPathTemplate": "/api/basic/{url}", - "UpstreamHttpMethod": [ - "Get", - "Post" - ], "DownstreamPathTemplate": "/api/{url}", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ @@ -85,6 +77,28 @@ } ] }, + { + "UpstreamPathTemplate": "/api/visitor/{url}", + "DownstreamPathTemplate": "/api/{url}", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "192.168.199.30", + "Port": 31008 + } + ] + }, + { + "UpstreamPathTemplate": "/api/message/{url}", + "DownstreamPathTemplate": "/api/{url}", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "192.168.199.30", + "Port": 31009 + } + ] + }, { "UpstreamPathTemplate": "/{url}/swagger/v1/swagger.json", "DownstreamPathTemplate": "/{url}/swagger/v1/swagger.json",