using Microsoft.AspNet.Abstractions; using Microsoft.AspNet.Mvc; using Microsoft.AspNet.RequestContainer; using Microsoft.AspNet.Routing; namespace MvcSample.Web { public class Startup { public void Configuration(IBuilder app) { app.UseContainer(services => { services.AddMvc(); services.AddSingleton(); }); app.UseMvc(routes => { // TODO: Add support for route constraints, so we can potentially constrain by existing routes routes.MapRoute("{area}/{controller}/{action}"); routes.MapRoute( "{controller}/{action}", new { controller = "Home", action = "Index" }); routes.MapRoute( "{controller}", new { controller = "Home" }); }); } } }