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 +}