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 29
29
30
30
import static org .springdoc .core .Constants .MVC_SERVLET_PATH ;
31
31
import static org .springdoc .core .Constants .SWAGGER_UI_PATH ;
32
+ import static org .springframework .util .AntPathMatcher .DEFAULT_PATH_SEPARATOR ;
32
33
import static org .springframework .web .servlet .view .UrlBasedViewResolver .REDIRECT_URL_PREFIX ;
33
34
34
35
/**
@@ -43,7 +44,7 @@ public class SwaggerUiHome {
43
44
@ Value (MVC_SERVLET_PATH )
44
45
private String mvcServletPath ;
45
46
46
- @ GetMapping
47
+ @ GetMapping ( DEFAULT_PATH_SEPARATOR )
47
48
@ Operation (hidden = true )
48
49
public String index () {
49
50
StringBuilder uiRootPath = new StringBuilder ();
Original file line number Diff line number Diff line change 36
36
import org .springframework .web .util .UriComponentsBuilder ;
37
37
38
38
import static org .springdoc .core .Constants .SWAGGER_UI_PATH ;
39
+ import static org .springframework .util .AntPathMatcher .DEFAULT_PATH_SEPARATOR ;
39
40
40
41
/**
41
42
* Home redirection to swagger api documentation
@@ -70,7 +71,7 @@ public SwaggerUiHome(Optional<WebFluxProperties> optionalWebFluxProperties) {
70
71
* @param response the response
71
72
* @return the mono
72
73
*/
73
- @ GetMapping
74
+ @ GetMapping ( DEFAULT_PATH_SEPARATOR )
74
75
@ Operation (hidden = true )
75
76
public Mono <Void > index (ServerHttpResponse response ) {
76
77
UriComponentsBuilder uriBuilder = UriComponentsBuilder .fromUriString (this .basePath + swaggerUiPath );
You can’t perform that action at this time.
0 commit comments