From cad5ab790a652f293db93f7aa45c17e1f51f5f59 Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Sun, 1 Feb 2026 23:55:57 -0500 Subject: [PATCH] chore: Register API controllers in Program.cs Co-Authored-By: Claude Opus 4.5 --- CutList.Web/Program.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CutList.Web/Program.cs b/CutList.Web/Program.cs index 1649b6a..dcbfbef 100644 --- a/CutList.Web/Program.cs +++ b/CutList.Web/Program.cs @@ -6,6 +6,7 @@ using Microsoft.EntityFrameworkCore; var builder = WebApplication.CreateBuilder(args); // Add services to the container. +builder.Services.AddControllers(); builder.Services.AddRazorComponents() .AddInteractiveServerComponents(); @@ -33,6 +34,7 @@ app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseAntiforgery(); +app.MapControllers(); app.MapRazorComponents() .AddInteractiveServerRenderMode();