Switched to Blazor.

This commit is contained in:
douwe
2025-04-06 14:30:02 +02:00
parent 5724f28599
commit 25567d3433
258 changed files with 106366 additions and 38637 deletions

28
douwco.be/Program.cs Normal file
View File

@@ -0,0 +1,28 @@
using douwco.be.Components;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents();
var app = builder.Build();
// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Error", createScopeForErrors: true);
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
app.UseHttpsRedirection();
app.UseAntiforgery();
app.MapStaticAssets();
app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode();
app.Run();