ASP.net core MVC catch all route serve static file : <p>Is there a way to make a catch all route serve a static file?</p>

<p>Looking at this <a href="http://blog.nbellocam.me/2016/03/21/routing-angular-2-asp-net-core/" rel="noreferrer">http://blog.nbellocam.me/2016/03/21/routing-angular-2-asp-net-core/</a></p>

<p>I basically want something like this:</p>

<pre><code>        app.UseMvc(routes =&gt;
        {
            routes.MapRoute("default", "{controller}/{action=Index}");

            routes.MapRoute("spa", "{*url}"); // This should serve SPA index.html
        });
</code></pre>

<p>So any route that doesn't match an MVC controller will serve up <code>wwwroot/index.html</code></p>
