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();