From fdc1f415b7281f10f860bfe3bf23827c718c893a Mon Sep 17 00:00:00 2001 From: WorkClub Automation Date: Fri, 20 Mar 2026 11:21:02 +0100 Subject: [PATCH] Add test endpoint for middleware validation tests --- backend/WorkClub.Api/Program.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/WorkClub.Api/Program.cs b/backend/WorkClub.Api/Program.cs index 132d300..076275d 100644 --- a/backend/WorkClub.Api/Program.cs +++ b/backend/WorkClub.Api/Program.cs @@ -223,6 +223,10 @@ app.MapGet("/weatherforecast", () => }) .WithName("GetWeatherForecast"); +// Simple test endpoint for middleware validation tests +app.MapGet("/api/test", () => Results.Ok(new { message = "Test endpoint" })) + .RequireAuthorization(); + app.MapGet("/api/debug/claims", (HttpContext context) => { var claims = context.User.Claims.Select(c => new { c.Type, c.Value }).ToList();