提交 f2046c64 编写于 作者: M ManongJu

fix

上级 91a745f6
......@@ -30,9 +30,7 @@ public class GatewaySwaggerResourcesProvider implements SwaggerResourcesProvider
public List<SwaggerResource> get() {
List<SwaggerResource> resources = new ArrayList<>();
List<Route> routes = routeLocator.getRoutes();
for (Route route:routes) {
resources.add(swaggerResource(route.getId(), route.getFullPath().replace("**", "v2/api-docs")));
}
routes.forEach(route -> resources.add(swaggerResource(route.getId(), route.getFullPath().replace("**", "v2/api-docs"))));
return resources;
}
private SwaggerResource swaggerResource(String name, String location) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册