From fee9960f936cf996c3afb15d6c7d6dd72637122d Mon Sep 17 00:00:00 2001 From: 杨宇千 Date: Sun, 4 Aug 2019 14:39:22 +0800 Subject: Use default mvc route. --- Timeline/Startup.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'Timeline/Startup.cs') diff --git a/Timeline/Startup.cs b/Timeline/Startup.cs index 8f702da5..242e816d 100644 --- a/Timeline/Startup.cs +++ b/Timeline/Startup.cs @@ -84,12 +84,7 @@ namespace Timeline app.UseAuthentication(); - app.UseMvc(routes => - { - routes.MapRoute( - name: "default", - template: "{controller}/{action=Index}/{id?}"); - }); + app.UseMvcWithDefaultRoute(); } } } -- cgit v1.2.3