From a884a2734dcba2c696ee5a6423bf78dc613becc4 Mon Sep 17 00:00:00 2001 From: LD-Reborn Date: Sat, 12 Jul 2025 22:55:56 +0200 Subject: [PATCH] Fixed logic error --- src/Server/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server/Program.cs b/src/Server/Program.cs index ac39683..4f1ad18 100644 --- a/src/Server/Program.cs +++ b/src/Server/Program.cs @@ -70,7 +70,7 @@ if (IsDevelopment || useSwagger) app.UseSwaggerUI(); //app.UseElmahExceptionPage(); // Messes with JSON response for API calls. Leaving this here so I don't accidentally put this in again later on. } -if (UseMiddleware == true || IsDevelopment) +if (UseMiddleware == true && !IsDevelopment) { app.UseMiddleware(); }