From 43673a4e673ddbe3422425eff2416d133c08a9ab Mon Sep 17 00:00:00 2001 From: Alby Blyth Date: Thu, 8 Feb 2024 16:11:43 +1000 Subject: [PATCH] Update api to always use swagger --- Source/HtmlRenderer.Demo.Web.Api/Program.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Source/HtmlRenderer.Demo.Web.Api/Program.cs b/Source/HtmlRenderer.Demo.Web.Api/Program.cs index 8bdd8e7b9..d84c78ffc 100644 --- a/Source/HtmlRenderer.Demo.Web.Api/Program.cs +++ b/Source/HtmlRenderer.Demo.Web.Api/Program.cs @@ -12,11 +12,8 @@ var app = builder.Build(); // Configure the HTTP request pipeline. -if (app.Environment.IsDevelopment()) -{ - app.UseSwagger(); - app.UseSwaggerUI(); -} +app.UseSwagger(); +app.UseSwaggerUI(); app.UseHttpsRedirection();