浏览代码

feature: 实现原网关的 No rest 功能

Walker 1 年之前
父节点
当前提交
bb608c1b24
共有 2 个文件被更改,包括 6 次插入5 次删除
  1. 1 0
      src/main/resources/application-biz-qa.yml
  2. 5 5
      src/main/resources/application-routes-qa.yml

+ 1 - 0
src/main/resources/application-biz-qa.yml

@@ -8,6 +8,7 @@ servers-mapping:
   nfyybyfy-rest-service: http://172.18.82.224:7670
   wx-ins-pay-rest-service: http://172.18.82.224:7669
   his-esb-api-service: http://172.18.82.224:13900
+  no-rest: http://127.0.0.1:${server.port}
 
 lb-servers:
   internethospital-web: lb://internethospital-web

+ 5 - 5
src/main/resources/application-routes-qa.yml

@@ -112,11 +112,11 @@ spring:
                 auth: ${auths-name.external-api}
                 setHeaders: [ 'pl-terminal', '20' ]
 
-#        - id: api-qa-v2-nfyybyfy-taihe-user-sync-med-cards
-#          uri: ''
-#          predicates:
-#            - Host=${host-name.api-qa}
-#            - Path=/v2/nfyybyfy/taihe/user/syncMedCards
+        - id: api-qa-v2-nfyybyfy-taihe-user-sync-med-cards
+          uri: ${servers-mapping.no-rest}
+          predicates:
+            - Host=${host-name.api-qa}
+            - Path=/v2/nfyybyfy/taihe/user/syncMedCards
 #          filters:
 #            - name: Auth
 #              args: