summaryrefslogtreecommitdiffstats
path: root/api/WhatApi/Middleware
diff options
context:
space:
mode:
authorivar <i@oiee.no>2025-10-20 00:26:34 +0200
committerivar <i@oiee.no>2025-10-20 00:26:34 +0200
commita1f0518d0cd123a791adde64f4f11bd8e44276c7 (patch)
tree675a7dff8262eea877ec800ff1efe9b92f5d7e7d /api/WhatApi/Middleware
downloadwhat-a1f0518d0cd123a791adde64f4f11bd8e44276c7.tar.xz
what-a1f0518d0cd123a791adde64f4f11bd8e44276c7.zip
Initial commit
Diffstat (limited to 'api/WhatApi/Middleware')
-rw-r--r--api/WhatApi/Middleware/AuthenticationMiddleware.cs8
-rw-r--r--api/WhatApi/Middleware/AuthorizationMiddleware.cs8
-rw-r--r--api/WhatApi/Middleware/UserLastSeenMiddleware.cs8
3 files changed, 24 insertions, 0 deletions
diff --git a/api/WhatApi/Middleware/AuthenticationMiddleware.cs b/api/WhatApi/Middleware/AuthenticationMiddleware.cs
new file mode 100644
index 0000000..8cdce53
--- /dev/null
+++ b/api/WhatApi/Middleware/AuthenticationMiddleware.cs
@@ -0,0 +1,8 @@
+namespace WhatApi.Middleware;
+
+public class AuthenticationMiddleware(RequestDelegate next,Database db)
+{
+ public async Task InvokeAsync(HttpContext context) {
+ await next(context);
+ }
+} \ No newline at end of file
diff --git a/api/WhatApi/Middleware/AuthorizationMiddleware.cs b/api/WhatApi/Middleware/AuthorizationMiddleware.cs
new file mode 100644
index 0000000..26b3f4a
--- /dev/null
+++ b/api/WhatApi/Middleware/AuthorizationMiddleware.cs
@@ -0,0 +1,8 @@
+namespace WhatApi.Middleware;
+
+public class AuthorizationMiddleware(RequestDelegate next, Database db)
+{
+ public async Task InvokeAsync(HttpContext context) {
+ await next(context);
+ }
+} \ No newline at end of file
diff --git a/api/WhatApi/Middleware/UserLastSeenMiddleware.cs b/api/WhatApi/Middleware/UserLastSeenMiddleware.cs
new file mode 100644
index 0000000..ef1b685
--- /dev/null
+++ b/api/WhatApi/Middleware/UserLastSeenMiddleware.cs
@@ -0,0 +1,8 @@
+namespace WhatApi.Middleware;
+
+public class UserLastSeenMiddleware(RequestDelegate next, Database db)
+{
+ public async Task InvokeAsync(HttpContext context) {
+ await next(context);
+ }
+} \ No newline at end of file