Sfoglia il codice sorgente

gateway 的 application.yml 中添加到 user-service 的 /api/tnb/** 路由

reghao 5 mesi fa
parent
commit
e0c13e2751
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7 0
      gateway/src/main/resources/application.yml

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

@@ -54,12 +54,19 @@ spring:
             - Path=/oauth/**
           filters:
             - StripPrefix=0
+        ###############################################################################
         - id: user-router
           uri: lb://user-service
           predicates:
             - Path=/api/user/**
           filters:
             - StripPrefix=0
+        - id: tnb-router
+          uri: lb://user-service
+          predicates:
+            - Path=/api/tnb/**
+          filters:
+            - StripPrefix=0
         ###############################################################################
         - id: content-router
           uri: lb://content-service