Explorar o código

gateway 添加 search-service 路由配置

reghao hai 7 meses
pai
achega
c025642b1f
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      gateway/src/main/resources/application.yml

+ 9 - 0
gateway/src/main/resources/application.yml

@@ -127,6 +127,15 @@ spring:
           uri: lb://message-service
           predicates:
             - Path=/api/message/**
+        ###############################################################################
+        - id: log-websocket
+          uri: lb:ws://search-service
+          predicates:
+            - Path=/logws/**
+        - id: search1-router
+          uri: lb://search-service
+          predicates:
+            - Path=/api/search1/**
 #    gateway:
 #      globalcors:
 #        cors-configurations: