aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-08-04 14:39:22 +0800
committer杨宇千 <crupest@outlook.com>2019-08-04 14:39:22 +0800
commitbdf65726cf3c8efa6470d199d775f36801ecff79 (patch)
treef79ba26b65f99c7502f3a880ab34034497a60cd1
parent308c1faa5130913428b7348f78fe0fe2c406a63d (diff)
downloadtimeline-bdf65726cf3c8efa6470d199d775f36801ecff79.tar.gz
timeline-bdf65726cf3c8efa6470d199d775f36801ecff79.tar.bz2
timeline-bdf65726cf3c8efa6470d199d775f36801ecff79.zip
Use default mvc route.
-rw-r--r--Timeline/Startup.cs7
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();
}
}
}