Skip to content

Commit d571b70

Browse files
committed
revert changes. Fixes #1379.
1 parent 828106e commit d571b70

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

springdoc-openapi-ui/src/main/java/org/springdoc/webmvc/ui/SwaggerUiHome.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
import static org.springdoc.core.Constants.MVC_SERVLET_PATH;
3131
import static org.springdoc.core.Constants.SWAGGER_UI_PATH;
32+
import static org.springframework.util.AntPathMatcher.DEFAULT_PATH_SEPARATOR;
3233
import static org.springframework.web.servlet.view.UrlBasedViewResolver.REDIRECT_URL_PREFIX;
3334

3435
/**
@@ -43,7 +44,7 @@ public class SwaggerUiHome {
4344
@Value(MVC_SERVLET_PATH)
4445
private String mvcServletPath;
4546

46-
@GetMapping
47+
@GetMapping(DEFAULT_PATH_SEPARATOR)
4748
@Operation(hidden = true)
4849
public String index() {
4950
StringBuilder uiRootPath = new StringBuilder();

springdoc-openapi-webflux-ui/src/main/java/org/springdoc/webflux/ui/SwaggerUiHome.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import org.springframework.web.util.UriComponentsBuilder;
3737

3838
import static org.springdoc.core.Constants.SWAGGER_UI_PATH;
39+
import static org.springframework.util.AntPathMatcher.DEFAULT_PATH_SEPARATOR;
3940

4041
/**
4142
* Home redirection to swagger api documentation
@@ -70,7 +71,7 @@ public SwaggerUiHome(Optional<WebFluxProperties> optionalWebFluxProperties) {
7071
* @param response the response
7172
* @return the mono
7273
*/
73-
@GetMapping
74+
@GetMapping(DEFAULT_PATH_SEPARATOR)
7475
@Operation(hidden = true)
7576
public Mono<Void> index(ServerHttpResponse response) {
7677
UriComponentsBuilder uriBuilder = UriComponentsBuilder.fromUriString(this.basePath + swaggerUiPath);

0 commit comments

Comments
 (0)