From 766a623d23355cedab51acbcc16ad84943c7f974 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Thu, 25 Apr 2024 11:35:14 -1000 Subject: [PATCH] Update Program.cs (#254) --- tutorials/webApiSwagger/secureSwagger/Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorials/webApiSwagger/secureSwagger/Program.cs b/tutorials/webApiSwagger/secureSwagger/Program.cs index 810adfe..4925546 100644 --- a/tutorials/webApiSwagger/secureSwagger/Program.cs +++ b/tutorials/webApiSwagger/secureSwagger/Program.cs @@ -10,11 +10,11 @@ builder.Services.AddAuthentication("Bearer").AddJwtBearer(); var app = builder.Build(); -//if (app.Environment.IsDevelopment()) -//{ + if (app.Environment.IsDevelopment()) + { app.UseSwagger(); app.UseSwaggerUI(); -//} + } app.UseHttpsRedirection();