Vibe documents

This commit is contained in:
6d486f49
2026-06-23 13:30:43 -04:00
parent 6eaf7b0980
commit 89bd1ca1f9
92 changed files with 69503 additions and 67 deletions
+9 -14
View File
@@ -2,11 +2,10 @@ using Microsoft.EntityFrameworkCore;
using Server;
var builder = WebApplication.CreateBuilder(args);
builder.WebHost.UseStaticWebAssets();
// Add services to the container.
builder.Services.AddControllersWithViews();
builder.Services.AddRazorPages();
builder.Services.AddControllers();
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddRazorComponents().AddInteractiveServerComponents();
var connectionString = builder.Configuration.GetConnectionString("DefaultConnection");
builder.Services.AddDbContext<AppDbContext>(options =>
@@ -31,19 +30,15 @@ using (var scope = app.Services.CreateScope())
}
}
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
app.UseWebAssemblyDebugging();
else
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Error");
}
app.UseBlazorFrameworkFiles();
app.UseStaticFiles();
app.UseAntiforgery();
app.UseRouting();
app.MapRazorPages();
app.MapControllers();
app.MapFallbackToFile("index.html");
app.MapRazorComponents<Server.Components.App>().AddInteractiveServerRenderMode();
app.Run();
app.Run();