Adds standard Blazor Web App

This commit is contained in:
Henry Trumme
2025-04-13 22:42:39 +02:00
parent d0aff0012b
commit 9f12a6a9f2
38 changed files with 1443 additions and 1 deletions

36
Watchlog/Program.cs Normal file
View File

@@ -0,0 +1,36 @@
using Watchlog.Components;
namespace Watchlog
{
public class Program
{
public static void Main(string[] args)
{
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");
// 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.UseStaticFiles();
app.UseAntiforgery();
app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode();
app.Run();
}
}
}