diff options
| author | ivar <i@oiee.no> | 2025-12-03 21:55:56 +0100 |
|---|---|---|
| committer | ivar <i@oiee.no> | 2025-12-03 21:55:56 +0100 |
| commit | 401226a14f3e5ef98b959e818d37683afd7056d9 (patch) | |
| tree | 877a88e956a86aa542ddcdb24d7b75add28dbd37 /api/WhatApi/Program.cs | |
| parent | cd70f54266d708867a1eb35870bc755bc5b2df32 (diff) | |
| download | what-401226a14f3e5ef98b959e818d37683afd7056d9.tar.xz what-401226a14f3e5ef98b959e818d37683afd7056d9.zip | |
Wire up authorization
Diffstat (limited to 'api/WhatApi/Program.cs')
| -rw-r--r-- | api/WhatApi/Program.cs | 1 |
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(); |
