Setup dotnet wrapper around Python AI project for UI

This commit is contained in:
derek holloway
2026-02-13 14:42:40 -08:00
parent 8de77b0491
commit c8eedf6d7c
32 changed files with 566 additions and 200 deletions
+28
View File
@@ -0,0 +1,28 @@
using WebServer.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();