Explorar el Código

gateway 添加到 search-service 的路由 /api/blog

reghao hace 3 meses
padre
commit
e7e2fb88df
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      gateway/src/main/resources/application.yml

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

@@ -183,6 +183,10 @@ spring:
           uri: lb://search-service
           predicates:
             - Path=/api/search1/**
+        - id: blog-router
+          uri: lb://search-service
+          predicates:
+            - Path=/api/blog/**
 #    gateway:
 #      globalcors:
 #        cors-configurations: