Skip to content

Commit 36b4a9d

Browse files
committed
Fix path
1 parent bbdb11c commit 36b4a9d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎stubbornjava-common/src/main/java/com/stubbornjava/common/undertow/handlers/CustomHandlers.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public static HttpHandler gzip(HttpHandler next) {
5252
public static HttpHandler resource(String prefix) {
5353
ResourceManager resourceManager = null;
5454
if (Env.LOCAL == Env.get()) {
55-
log.debug("using local file resource manager {}", AssetsConfig.assetsRoot());
56-
resourceManager = new FileResourceManager(new File(AssetsConfig.assetsRoot()), 1024 * 1024);
55+
log.debug("using local file resource manager {}", AssetsConfig.assetsRoot() + prefix);
56+
resourceManager = new FileResourceManager(new File(AssetsConfig.assetsRoot() + prefix), 1024 * 1024);
5757
} else {
5858
log.debug("using classpath file resource manager");
5959
resourceManager = new ClassPathResourceManager(CustomHandlers.class.getClassLoader(), prefix);

0 commit comments

Comments
 (0)