From 529ef0229031699229ef67fd04d380ff175396a3 Mon Sep 17 00:00:00 2001 From: Scott Addie Date: Thu, 5 Oct 2017 21:50:15 -0500 Subject: [PATCH] Invoke a simpler UseMvc overload in Razor Pages templates --- .../content/RazorPagesWeb-CSharp/Startup.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Microsoft.DotNet.Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Startup.cs b/src/Microsoft.DotNet.Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Startup.cs index da13981417..b8b16bc103 100644 --- a/src/Microsoft.DotNet.Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Startup.cs +++ b/src/Microsoft.DotNet.Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Startup.cs @@ -129,12 +129,7 @@ namespace Company.WebApplication1 app.UseAuthentication(); #endif - app.UseMvc(routes => - { - routes.MapRoute( - name: "default", - template: "{controller}/{action=Index}/{id?}"); - }); + app.UseMvc(); } } }