From 4ed696826d4fcb78d648d9c2914d08a8006e1174 Mon Sep 17 00:00:00 2001 From: Tim Ittermann Date: Tue, 19 Mar 2024 15:36:00 +0100 Subject: [PATCH] Always offer swagger --- Program.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Program.cs b/Program.cs index 10bb032..52b7ff9 100644 --- a/Program.cs +++ b/Program.cs @@ -23,14 +23,8 @@ var app = builder.Build(); -// Configure the HTTP request pipeline. -if (app.Environment.IsDevelopment()) -{ - app.UseSwagger(); - app.UseSwaggerUI(); -} - -app.UseHttpsRedirection(); +app.UseSwagger(); +app.UseSwaggerUI(); app.MapGet("/preview/{providerId}", async (string providerId, ScreenRepository repo) => {