From e580e1aee24df88f12d965484ddcc7fa90250d68 Mon Sep 17 00:00:00 2001 From: Thomas Peter Berntsen Date: Sun, 15 Dec 2024 15:57:48 +0100 Subject: [PATCH] Adds authorization to he builder --- DemoApi/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();