diff --git a/src/Microsoft.AspNet.Mvc/BuilderExtensions.cs b/src/Microsoft.AspNet.Mvc/BuilderExtensions.cs
index 5f24c2781a..d33436a798 100644
--- a/src/Microsoft.AspNet.Mvc/BuilderExtensions.cs
+++ b/src/Microsoft.AspNet.Mvc/BuilderExtensions.cs
@@ -29,6 +29,22 @@ public static IApplicationBuilder UseMvc([NotNull] this IApplicationBuilder app)
});
}
+ ///
+ /// Adds Mvc to the request execution pipeline
+ /// with a default route.
+ ///
+ /// The .
+ /// The .
+ public static IApplicationBuilder UseMvcWithDefaultRoute([NotNull] this IApplicationBuilder app)
+ {
+ return app.UseMvc(routes =>
+ {
+ routes.MapRoute(
+ name: "default",
+ template: "{controller=Home}/{action=Index}/{id?}");
+ });
+ }
+
///
/// Adds Mvc to the request execution pipeline.
///