浏览代码

gateway 配置文件中添加 admin 模块路由 /api/admin1/**

reghao 1 月之前
父节点
当前提交
e867f3ac55
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      gateway/src/main/resources/application.yml

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

@@ -193,6 +193,12 @@ spring:
             - Path=/api/comment/**
           filters:
             - StripPrefix=0
+        - id: admin-router
+          uri: lb://admin-service
+          predicates:
+            - Path=/api/admin1/**
+          filters:
+            - StripPrefix=0
 #    gateway:
 #      globalcors:
 #        cors-configurations: