summaryrefslogtreecommitdiffstats
path: root/api/WhatApi/Program.cs
diff options
context:
space:
mode:
authorivar <i@oiee.no>2025-10-26 22:58:52 +0100
committerivar <i@oiee.no>2025-10-26 22:58:52 +0100
commite4fb2a3c493cca456f1515bdaad39499eafc3348 (patch)
tree961aaa0aef410de292b6cd28c8cd7f4f59762cd3 /api/WhatApi/Program.cs
parent842502e82c4ddfea05a5f77c361aaa27f75afc42 (diff)
downloadwhat-e4fb2a3c493cca456f1515bdaad39499eafc3348.tar.xz
what-e4fb2a3c493cca456f1515bdaad39499eafc3348.zip
Implement UserLastSeenMiddleware
Diffstat (limited to 'api/WhatApi/Program.cs')
-rw-r--r--api/WhatApi/Program.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/WhatApi/Program.cs b/api/WhatApi/Program.cs
index 884240d..27ceaf9 100644
--- a/api/WhatApi/Program.cs
+++ b/api/WhatApi/Program.cs
@@ -7,6 +7,7 @@ global using NetTopologySuite.Geometries;
global using Microsoft.AspNetCore.Http.Extensions;
global using Microsoft.AspNetCore.Mvc;
global using NetTopologySuite;
+using WhatApi.Middleware;
namespace WhatApi;
@@ -38,11 +39,11 @@ public partial class Program
var db = scope.ServiceProvider.GetRequiredService<Database>();
Seed(db);
#endif
-
app.UseRouting();
app.UseForwardedHeaders();
app.UseCors();
app.MapStaticAssets();
+ app.UseMiddleware<UserLastSeenMiddleware>();
app.MapRazorPages();
app.MapControllers();
app.Run();