//...
services.AddRazorComponents().AddInteractiveServerComponents();
//...
app.UseRouting();
app.UseAuthentication();
app.UseAuthorization();
app.UseBanMiddleware();
app.UseAntiforgery();
app.UseEndpoints(endpoints => {
endpoints.MapRazorPages();
endpoints.MapControllers();
endpoints.MapOgma3Endpoints();
endpoints.MapGroup("panel")
.MapRazorComponents<App>()
.AddInteractiveServerRenderMode();
});
//...
services.AddRazorComponents().AddInteractiveServerComponents();
//...
app.UseRouting();
app.UseAuthentication();
app.UseAuthorization();
app.UseBanMiddleware();
app.UseAntiforgery();
app.UseEndpoints(endpoints => {
endpoints.MapRazorPages();
endpoints.MapControllers();
endpoints.MapOgma3Endpoints();
endpoints.MapGroup("panel")
.MapRazorComponents<App>()
.AddInteractiveServerRenderMode();
});