Skip to content

Commit

Permalink
Update OxOWebMvcConfig.java
Browse files Browse the repository at this point in the history
  • Loading branch information
matentzn committed Aug 13, 2020
1 parent a7f3096 commit 6c045c2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public void configurePathMatch(PathMatchConfigurer configurer) {
}

public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/custom/**").addResourceLocations("file:" + System.getProperty("oxo.custom")+"/");
if(System.getenv("OXO_CUSTOM")!=null) {
String resource = "file:" + System.getenv("OXO_CUSTOM")+"/";
registry.addResourceHandler("/custom/**").addResourceLocations(resource);
}
}
}

0 comments on commit 6c045c2

Please sign in to comment.