From e4fb2a3c493cca456f1515bdaad39499eafc3348 Mon Sep 17 00:00:00 2001 From: ivar Date: Sun, 26 Oct 2025 22:58:52 +0100 Subject: Implement UserLastSeenMiddleware --- api/WhatApi/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'api/WhatApi/Program.cs') 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(); Seed(db); #endif - app.UseRouting(); app.UseForwardedHeaders(); app.UseCors(); app.MapStaticAssets(); + app.UseMiddleware(); app.MapRazorPages(); app.MapControllers(); app.Run(); -- cgit v1.3