title: Use Undertow to serve AngularJS
body: <p>I would like to use Undertow as a simple web server for serving an AngularJS application. The rest services needed by the AngularJS application is served by Apache Camel so I would only need to serve the Angular App using Undertow.</p>
  
  <p>I have read the documentation but cannot get it working, any ideas on what I am doing wrong? </p>
  
  <p>Here is the code that I have now for starting Underow server</p>
  
  <pre><code>Undertow server = Undertow.builder()
              .addHttpListener(8080, "localhost")
              .setHandler(resource(new FileResourceManager(new File("../dist"),10))
                      .addWelcomeFiles("../dist/index.html")
                      .setDirectoryListingEnabled(true))
              .build();
      server.start();
  </code></pre>