FINERACT-835: Upgrade Swagger and automatically generate the JSON spec (#1069)
Co-authored-by: Michael Vorburger ⛑️ <mike@vorburger.ch>
This commit is contained in:
co-authored by
Michael Vorburger ⛑️
parent
e234980cd3
commit
7ec5229e23
+6
@@ -34,5 +34,11 @@ public class WebFrontEndConfiguration implements WebMvcConfigurer {
|
||||
if (!registry.hasMappingForPattern("/**")) {
|
||||
registry.addResourceHandler("/**").addResourceLocations(CLASSPATH_RESOURCE_LOCATIONS);
|
||||
}
|
||||
|
||||
// TODO: The below path should be version agnostic
|
||||
String[] SWAGGER_RESOURCE_LOCATIONS = { "classpath:/static/swagger-ui/",
|
||||
"classpath:/META-INF/resources/webjars/swagger-ui-dist/3.26.0/" };
|
||||
|
||||
registry.addResourceHandler("/swagger-ui/**").addResourceLocations(SWAGGER_RESOURCE_LOCATIONS);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user