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",