This commit is contained in:
Isaac Levin 2019-06-29 19:21:30 -04:00
parent cefeb6ba00
commit 9e28412a7a
1 changed files with 6 additions and 0 deletions

View File

@ -120,7 +120,10 @@ namespace Company.WebApplication1
#else
services.AddControllersWithViews();
#endif
#if (Auth)
services.AddRazorPages();
#endif
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
@ -160,7 +163,10 @@ namespace Company.WebApplication1
endpoints.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
#if (Auth)
endpoints.MapRazorPages();
#endif
});
}
}