From 56bbbd66918a2adc3f438d82fa71f64667d8ebca Mon Sep 17 00:00:00 2001 From: Arne Dumarey Date: Tue, 10 Sep 2024 12:54:10 +0200 Subject: [PATCH] fix: pipeline middleware order --- src/TicketingService/Program.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/TicketingService/Program.cs b/src/TicketingService/Program.cs index 2677060..7a9f374 100644 --- a/src/TicketingService/Program.cs +++ b/src/TicketingService/Program.cs @@ -73,6 +73,7 @@ var app = builder.Build(); app + .UseMiddleware() .UseHealthChecks(new PathString("/tickets/health"), new HealthCheckOptions { ResultStatusCodes = @@ -86,8 +87,6 @@ .UseAuthentication() .UseAuthorization(); -app.UseMiddleware(); - // map endpoints app.MapPost("/tickets/create", Handlers.Create) .Produces((int)HttpStatusCode.OK, contentType: MediaTypeNames.Application.Json)