feat(web): add Razor Pages scaffolding to API project

Register Razor Pages services and middleware in Program.cs, removing
UseDefaultFiles() since Razor Pages handles routing. Add shared layout
with dark-themed app shell (header, nav links, search/new-task buttons)
and vendor script references for htmx, Sortable, and Chart.js.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-01 22:01:53 -05:00
parent 13b1f14344
commit c76956fb5b
4 changed files with 73 additions and 1 deletions

View File

@@ -37,6 +37,9 @@ builder.Services.AddCors(options =>
});
});
// Razor Pages
builder.Services.AddRazorPages();
var app = builder.Build();
// Auto-migrate on startup in development
@@ -51,8 +54,8 @@ app.UseSwagger();
app.UseSwaggerUI();
app.UseCors();
app.UseDefaultFiles();
app.UseStaticFiles();
app.MapRazorPages();
app.MapControllers();
app.Run();