This commit is contained in:
parent
17b4bc2b6d
commit
05990683cf
|
|
@ -73,9 +73,7 @@ namespace ComponentsWebAssembly_CSharp.Server
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
services.AddControllersWithViews();
|
services.AddControllersWithViews();
|
||||||
#if (IndividualLocalAuth)
|
|
||||||
services.AddRazorPages();
|
services.AddRazorPages();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
// 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
|
#endif
|
||||||
app.UseEndpoints(endpoints =>
|
app.UseEndpoints(endpoints =>
|
||||||
{
|
{
|
||||||
#if (IndividualLocalAuth)
|
|
||||||
endpoints.MapRazorPages();
|
endpoints.MapRazorPages();
|
||||||
#endif
|
|
||||||
endpoints.MapControllers();
|
endpoints.MapControllers();
|
||||||
endpoints.MapFallbackToFile("index.html");
|
endpoints.MapFallbackToFile("index.html");
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue