ASP.NET Core map route to static file handler
问题 I'm working on a ASP.NET Core website (previously named ASP.NET 5 / vNext) with Angular. In order for Angular to work I need to have a catch-all route: app.UseStaticFiles(); app.UseMvc(routes => { // Angular fallback route routes.MapRoute("angular", "{*url}", new { controller = "Home", action = "Index" }); }); I also have a few files/folders in wwwroot, like: wwwroot/app wwwroot/assets wwwroot/lib When any requests are made to these paths, for example http://example.com/assets/css/test.css ,