title: akka-http + angular2 routing
body: <p>I'm trying to serve angular2(rc3) app from akka-http(scala rest framework). It doesn't work because of routing. When requested, spray tries to find <code>/my/endpoint/declared/in/angular</code> as normal resource. How should I do it? </p>
  
  <p>With simple static webpages, without routing(dynamic links) it is pretty easy:</p>
  
  <pre><code>path("app") {
    getFromResource("my-app/index.html")
  } ~ getFromResourceDirectory("my-app")
  </code></pre>
  
  <p>I've tried to serve index.html every time when requested resource is not found:</p>
  
  <pre><code>path("app") {
    getFromResource("my-app/index.html")
  } ~ getFromResourceDirectory("my-app") ~ getFromResource("my-app/index.html")
  </code></pre>
  
  <p>but it breaks relative links( when I ask for <code>/app/my/endpoint</code> I get index.html which tries to download styles.css from <code>/app/my/endpoint/styles.css</code> instead of <code>/app/styles.css</code>) </p>
  
  <p>I would like to know how it is done in other http servers. </p>