public void run(WebServer server) throws IOException {
// Serve files in this directory, based on the path of the request.
FileServer files = new FileServer(locateOnClasspath("examples/fox"));
// Serve static assets (e.g. js files, images, css files, etc) for any request whose path starts
// with one of the url prefixes specified (in this example, we're serving all requests).
StaticAssets assets = new StaticAssets(files).serve("/");
// If request targets a directory (i.e. request path ends with "/"),
// serve the index.html file located in that directory (the default behavior).
assets.index("index.html");
// Log all accesses to the server in apache common log format
server.add(new ApacheCommonLogger(logger))
.start(assets);
}