From 4250eb85595e745ec49be1a4469147540e73bfeb Mon Sep 17 00:00:00 2001 From: Patrick BRUGIERE Date: Wed, 3 Apr 2024 14:04:08 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Project/EntityFram?= =?UTF-8?q?ework/API/Program.cs'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Project/EntityFramework/API/Program.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Project/EntityFramework/API/Program.cs b/Project/EntityFramework/API/Program.cs index 3f8be50..43c4df1 100644 --- a/Project/EntityFramework/API/Program.cs +++ b/Project/EntityFramework/API/Program.cs @@ -102,11 +102,10 @@ builder.Services.AddScoped(); builder.Services.AddScoped(); var app = builder.Build(); // Configure the HTTP request pipeline. -if (app.Environment.IsDevelopment()) -{ + app.UseSwagger(); app.UseSwaggerUI(); -} + app.UseSwaggerUI(c => {