summaryrefslogtreecommitdiffstats
path: root/api/WhatApi
diff options
context:
space:
mode:
authorivar <i@oiee.no>2025-12-03 21:55:56 +0100
committerivar <i@oiee.no>2025-12-03 21:55:56 +0100
commit401226a14f3e5ef98b959e818d37683afd7056d9 (patch)
tree877a88e956a86aa542ddcdb24d7b75add28dbd37 /api/WhatApi
parentcd70f54266d708867a1eb35870bc755bc5b2df32 (diff)
downloadwhat-401226a14f3e5ef98b959e818d37683afd7056d9.tar.xz
what-401226a14f3e5ef98b959e818d37683afd7056d9.zip
Wire up authorization
Diffstat (limited to 'api/WhatApi')
-rw-r--r--api/WhatApi/Program.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/WhatApi/Program.cs b/api/WhatApi/Program.cs
index fa50661..7d9c1b4 100644
--- a/api/WhatApi/Program.cs
+++ b/api/WhatApi/Program.cs
@@ -91,6 +91,7 @@ app.UseCors();
app.MapStaticAssets();
app.UseMiddleware<UserLastSeenMiddleware>();
app.UseAuthentication();
+app.UseAuthorization();
app.MapControllers();
app.MapGet("/", () => Results.Redirect("/map"));
app.Run();