@Override
	public Mono<Resource> transform(ServerWebExchange serverWebExchange, Resource resource, ResourceTransformerChain resourceTransformerChain) {
		SwaggerUiConfigParameters swaggerUiConfigParameters = new SwaggerUiConfigParameters(swaggerUiConfig);
		swaggerWelcomeCommon.buildFromCurrentContextPath(swaggerUiConfigParameters, serverWebExchange.getRequest());

		final AntPathMatcher antPathMatcher = new AntPathMatcher();
		try {
			boolean isIndexFound = antPathMatcher.match("**/swagger-ui/**/" + SWAGGER_INITIALIZER_JS, resource.getURL().toString());
			if (isIndexFound) {
				String html = defaultTransformations(swaggerUiConfigParameters, resource.getInputStream());
				return Mono.just(new TransformedResource(resource, html.getBytes(StandardCharsets.UTF_8)));
			}
			else {
				return Mono.just(resource);
			}
		}
		catch (Exception e) {
			throw new SpringDocUIException("Failed to transform Index", e);
		}
	}
Instantiates a new Swagger index transformer.

@param swaggerUiConfig          the swagger ui config
@param swaggerUiOAuthProperties the swagger ui o auth properties
@param swaggerWelcomeCommon     the swagger welcome common
@param objectMapperProvider     the object mapper provider
springdoc-openapi-starter-webflux-ui/src/main/java/org/springdoc/webflux/ui/SwaggerIndexPageTransformer.java