diff --git a/DemoApi/Program.cs b/DemoApi/Program.cs index af222c8..e582499 100644 --- a/DemoApi/Program.cs +++ b/DemoApi/Program.cs @@ -54,6 +54,8 @@ builder.Services.AddTransient(); +builder.Services.AddAuthorization(); + var app = builder.Build(); // Configure the HTTP request pipeline. @@ -67,4 +69,4 @@ app.MapControllers(); -app.Run(); \ No newline at end of file +app.Run();