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 | fee9960f936cf996c3afb15d6c7d6dd72637122d (patch) | |
tree | f79ba26b65f99c7502f3a880ab34034497a60cd1 /Timeline/Startup.cs | |
parent | 9aeca6f6adf1a20d85e1fdbc8bdc8dfb35be28c1 (diff) | |
download | timeline-fee9960f936cf996c3afb15d6c7d6dd72637122d.tar.gz timeline-fee9960f936cf996c3afb15d6c7d6dd72637122d.tar.bz2 timeline-fee9960f936cf996c3afb15d6c7d6dd72637122d.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(); } } } |