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();