-
-
Save cescoffier/98adde5c26c52f0c16e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
router.get("/assets/*").handler(ctxt -> { | |
final ClassLoader original = Thread.currentThread().getContextClassLoader(); | |
try { | |
LOGGER.info("Handling " + ctxt.normalisedPath()); | |
Thread.currentThread().setContextClassLoader(VertxWebApplication.class.getClassLoader()); | |
ctxt.next(); | |
} finally { | |
Thread.currentThread().setContextClassLoader(original); | |
} | |
}); | |
router.get("/assets/*").handler(StaticHandler.create("assets")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment