Unconditionally enable razor pages in hosted template. Fixes #20791 (#20792)

This commit is contained in:
Steve Sanderson 2020-04-13 17:53:54 +01:00 committed by GitHub
parent 17b4bc2b6d
commit 05990683cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -73,9 +73,7 @@ namespace ComponentsWebAssembly_CSharp.Server
#endif
services.AddControllersWithViews();
#if (IndividualLocalAuth)
services.AddRazorPages();
#endif
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
@ -119,9 +117,7 @@ namespace ComponentsWebAssembly_CSharp.Server
#endif
app.UseEndpoints(endpoints =>
{
#if (IndividualLocalAuth)
endpoints.MapRazorPages();
#endif
endpoints.MapControllers();
endpoints.MapFallbackToFile("index.html");
});