title: Nancy: Serving static content (e.g. index.html) from "/"?
body: <p>I'm trying to make a single page web application using Nancy. Therefore, I want my root URL to serve a plain .html file, without any view logic or whatsoever.</p>
  
  <p>I tried </p>
  
  <pre><code>Get["/"] = parameters =&gt; Response.AsHtml("content/index.html")
  </code></pre>
  
  <p>But there's no <code>AsHtml</code>.</p>
  
  <p>I tried a custom bootstrapper with</p>
  
  <pre><code>conventions.StaticContentsConventions.Add(
      StaticContentConventionBuilder.AddFile("/", @"content/index.html")
  );
  </code></pre>
  
  <p>But apparently it thinks that "/" is not a file - Nancy gives me a directory listing on <code>http://localhost:&lt;port&gt;/</code> instead.</p>
  
  <p>What do I do? This shouldn't be this hard, right?</p>
  
  <p>ps. Any way to turn that directory listing off? It feels insecure.</p>