Преглед изворни кода

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

reghao пре 5 месеци
родитељ
комит
e0c13e2751
1 измењених фајлова са 7 додато и 0 уклоњено
  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