Skip to content

Commit dfecd89

Browse files
committed
fix: modify gateway router
1 parent 17efa4a commit dfecd89

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

backend/api-gateway/src/main/java/com/datamate/gateway/ApiGatewayApplication.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,10 @@ public RouteLocator customRouteLocator(RouteLocatorBuilder builder) {
7676
.filters(f -> f.stripPrefix(1).prefixPath("/api"))
7777
.uri("http://deer-flow-backend:8000"))
7878

79-
// 网关服务(用户)
79+
// 网关内部服务(用户)
80+
// 使用 no-op 触发 GlobalFilter 执行,然后由本地 Controller 处理
8081
.route("gateway", r -> r.path("/api/user/**")
81-
.uri("http://localhost:8080"))
82+
.uri("no-op"))
8283

8384
// 其他后端服务
8485
.route("default", r -> r.path("/api/**")

0 commit comments

Comments
 (0)