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 | |
| parent | cd70f54266d708867a1eb35870bc755bc5b2df32 (diff) | |
| download | what-401226a14f3e5ef98b959e818d37683afd7056d9.tar.xz what-401226a14f3e5ef98b959e818d37683afd7056d9.zip | |
Wire up authorization
| -rw-r--r-- | api/.idea/.idea.WhatApi/.idea/data_source_mapping.xml | 6 | ||||
| -rw-r--r-- | api/.idea/.idea.WhatApi/.idea/sqldialects.xml | 6 | ||||
| -rw-r--r-- | api/WhatApi/Program.cs | 1 |
3 files changed, 1 insertions, 12 deletions
diff --git a/api/.idea/.idea.WhatApi/.idea/data_source_mapping.xml b/api/.idea/.idea.WhatApi/.idea/data_source_mapping.xml deleted file mode 100644 index 16f7743..0000000 --- a/api/.idea/.idea.WhatApi/.idea/data_source_mapping.xml +++ /dev/null @@ -1,6 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project version="4"> - <component name="DataSourcePerFileMappings"> - <file url="file://$PROJECT_DIR$/.idea/.idea.WhatApi/.idea/queries/Query.sql" value="4705593e-7cb4-468e-aaf4-fd47704f2409" /> - </component> -</project>
\ No newline at end of file diff --git a/api/.idea/.idea.WhatApi/.idea/sqldialects.xml b/api/.idea/.idea.WhatApi/.idea/sqldialects.xml deleted file mode 100644 index f21172d..0000000 --- a/api/.idea/.idea.WhatApi/.idea/sqldialects.xml +++ /dev/null @@ -1,6 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project version="4"> - <component name="SqlDialectMappings"> - <file url="file://$PROJECT_DIR$/.idea/.idea.WhatApi/.idea/queries/Query.sql" dialect="PostgreSQL" /> - </component> -</project>
\ No newline at end of file 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(); |
