mirror of
https://github.com/gotson/komga.git
synced 2025-12-17 22:13:47 +01:00
parent
ccb7fbe204
commit
626f047696
1 changed files with 12 additions and 1 deletions
|
|
@ -14,7 +14,18 @@ import java.util.concurrent.TimeUnit
|
|||
@Configuration
|
||||
class StaticResourceConfiguration : WebMvcConfigurer {
|
||||
override fun addResourceHandlers(registry: ResourceHandlerRegistry) {
|
||||
registry//.setOrder(Ordered.HIGHEST_PRECEDENCE)
|
||||
if (!registry.hasMappingForPattern("/webjars/**")) {
|
||||
registry.addResourceHandler("/webjars/**")
|
||||
.addResourceLocations("classpath:/META-INF/resources/webjars/")
|
||||
}
|
||||
|
||||
if (!registry.hasMappingForPattern("/swagger-ui.html**")) {
|
||||
registry
|
||||
.addResourceHandler("/swagger-ui.html**")
|
||||
.addResourceLocations("classpath:/META-INF/resources/swagger-ui.html")
|
||||
}
|
||||
|
||||
registry
|
||||
.addResourceHandler(
|
||||
"/index.html",
|
||||
"/favicon.ico"
|
||||
|
|
|
|||
Loading…
Reference in a new issue