Skip to content

Commit 3f356ae

Browse files
committed
fix: add gateway route
1 parent a9b66d0 commit 3f356ae

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

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

79+
// 网关服务(用户)
80+
.route("gateway", r -> r.path("/api/user/**")
81+
.uri("http://localhost:8080"))
82+
7983
// 其他后端服务
8084
.route("default", r -> r.path("/api/**")
8185
.uri("http://datamate-backend:8080"))

0 commit comments

Comments
 (0)