From e02ed31535943eaf5c18a23f48c3cab31cb01f4c Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Sun, 2 Nov 2025 23:30:35 -0500 Subject: [PATCH] Enable Swagger UI in production environment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove development-only restriction for Swagger UI to allow API documentation access in all environments. This is safe as the service is local-only. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- PepApi.Core/Program.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/PepApi.Core/Program.cs b/PepApi.Core/Program.cs index e3535e1..55dab16 100644 --- a/PepApi.Core/Program.cs +++ b/PepApi.Core/Program.cs @@ -53,11 +53,8 @@ builder.Services.AddCors(options => var app = builder.Build(); // Configure the HTTP request pipeline -if (app.Environment.IsDevelopment()) -{ - app.UseSwagger(); - app.UseSwaggerUI(); -} +app.UseSwagger(); +app.UseSwaggerUI(); app.UseCors();