Browse Source

gateway 添加 search-service 路由配置

reghao 7 tháng trước cách đây
mục cha
commit
c025642b1f
1 tập tin đã thay đổi với 9 bổ sung0 xóa
  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: