From 7c63421a6d6ca0e82c5457127edae4df76247c48 Mon Sep 17 00:00:00 2001 From: Bader Nasser Al-Hashmi Date: Tue, 5 Sep 2017 17:54:25 +0400 Subject: [PATCH] Call `UseMvc()` instead of `UseMvcWithDefaultRoute()` (#4204) --- .../sample/TodoApi/Startup2.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/tutorials/web-api-help-pages-using-swagger/sample/TodoApi/Startup2.cs b/aspnetcore/tutorials/web-api-help-pages-using-swagger/sample/TodoApi/Startup2.cs index ef93191454..40b5a8b6a5 100644 --- a/aspnetcore/tutorials/web-api-help-pages-using-swagger/sample/TodoApi/Startup2.cs +++ b/aspnetcore/tutorials/web-api-help-pages-using-swagger/sample/TodoApi/Startup2.cs @@ -36,8 +36,8 @@ namespace TodoApi c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1"); }); - app.UseMvcWithDefaultRoute(); + app.UseMvc(); } #endregion } -} \ No newline at end of file +}