🔥 无用代码删除

This commit is contained in:
付绪壮 2022-04-07 14:10:00 +08:00
parent 8211fdb762
commit 8395301dd2

View File

@ -62,9 +62,6 @@ public class PigRequestGlobalFilter implements GlobalFilter, Ordered {
String newPath = "/" + Arrays.stream(StringUtils.tokenizeToStringArray(rawPath, "/")).skip(1L)
.collect(Collectors.joining("/"));
// if (rawPath.contains("/v3/api-docs/")) {
// newPath = "/admin/v3/api-docs";
// }
ServerHttpRequest newRequest = request.mutate().path(newPath).build();
exchange.getAttributes().put(GATEWAY_REQUEST_URL_ATTR, newRequest.getURI());