fix(gateway): 更新story-service路由路径为/api/story
All checks were successful
test/timeline-server/pipeline/head This commit looks good

将story-service的路由路径从/story/**修改为/api/story/**,并调整StripPrefix过滤器为1以匹配新的路径结构
This commit is contained in:
2026-02-26 12:32:13 +08:00
parent 39d878311f
commit ff84ab4dd1

View File

@@ -32,8 +32,8 @@ logging.pattern.file=%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36}
# Story service route
spring.cloud.gateway.routes[0].id=story-service
spring.cloud.gateway.routes[0].uri=lb://timeline-story
spring.cloud.gateway.routes[0].predicates[0]=Path=/story/**
spring.cloud.gateway.routes[0].filters[0]=StripPrefix=0
spring.cloud.gateway.routes[0].predicates[0]=Path=/api/story/**
spring.cloud.gateway.routes[0].filters[0]=StripPrefix=1
# File service route
spring.cloud.gateway.routes[1].id=file-service