Static Classpath

When you are delivering a complete jar file and you want to serve static assets from within the jar file.

Setup

In the routemaster.properties file, simply add this line in:

route./*=synapticloop.nanohttpd.servant.ClasspathFileServant

This will serve all files from the classpath unless other routes are defined.