File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
springdoc-openapi-ui/src/main/java/org/springdoc/webmvc/ui
springdoc-openapi-webflux-ui/src/main/java/org/springdoc/webflux/ui Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 2929
3030import static org .springdoc .core .Constants .MVC_SERVLET_PATH ;
3131import static org .springdoc .core .Constants .SWAGGER_UI_PATH ;
32+ import static org .springframework .util .AntPathMatcher .DEFAULT_PATH_SEPARATOR ;
3233import 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 ();
Original file line number Diff line number Diff line change 3636import org .springframework .web .util .UriComponentsBuilder ;
3737
3838import 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 );
You can’t perform that action at this time.
0 commit comments