diff options
author | 杨宇千 <crupest@outlook.com> | 2019-08-04 14:39:22 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-08-04 14:39:22 +0800 |
commit | bdf65726cf3c8efa6470d199d775f36801ecff79 (patch) | |
tree | f79ba26b65f99c7502f3a880ab34034497a60cd1 /Timeline/Startup.cs | |
parent | 308c1faa5130913428b7348f78fe0fe2c406a63d (diff) | |
download | timeline-bdf65726cf3c8efa6470d199d775f36801ecff79.tar.gz timeline-bdf65726cf3c8efa6470d199d775f36801ecff79.tar.bz2 timeline-bdf65726cf3c8efa6470d199d775f36801ecff79.zip |
Use default mvc route.
Diffstat (limited to 'Timeline/Startup.cs')
-rw-r--r-- | Timeline/Startup.cs | 7 |
1 files changed, 1 insertions, 6 deletions
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(); } } } |