From 1a7adcf6ebe63f64ee3b38a6a87ceed574168072 Mon Sep 17 00:00:00 2001 From: Tony Fages Date: Tue, 26 Mar 2024 15:46:54 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Verax=5FAPI=5FEF/V?= =?UTF-8?q?erax=5FAPI=5FEF/API/Program.cs'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Verax_API_EF/Verax_API_EF/API/Program.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Verax_API_EF/Verax_API_EF/API/Program.cs b/Verax_API_EF/Verax_API_EF/API/Program.cs index 63c6025..d7f9f3e 100644 --- a/Verax_API_EF/Verax_API_EF/API/Program.cs +++ b/Verax_API_EF/Verax_API_EF/API/Program.cs @@ -75,11 +75,15 @@ app.MapIdentityApi(); app.MapSwagger().RequireAuthorization(); // Configure the HTTP request pipeline. +/* if (app.Environment.IsDevelopment()) { app.UseSwagger(); app.UseSwaggerUI(); -} +}*/ + +app.UseSwagger(); +app.UseSwaggerUI(); app.UseHttpsRedirection(); app.UseAuthorization();