From 951ba2c941c8152aaab0b045a9a30319a8fb0ac4 Mon Sep 17 00:00:00 2001 From: Clement CHIEU Date: Tue, 2 Apr 2024 15:21:23 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'API=5FSQLuedo/API/?= =?UTF-8?q?Program.cs'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- API_SQLuedo/API/Program.cs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/API_SQLuedo/API/Program.cs b/API_SQLuedo/API/Program.cs index 0c518d1..f4e19f8 100644 --- a/API_SQLuedo/API/Program.cs +++ b/API_SQLuedo/API/Program.cs @@ -116,15 +116,8 @@ using (var scope = app.Services.CreateScope()) } -app.UseSwagger(options => -{ - options.RouteTemplate = "containers/johnnyratton-sqluedo-api/{documentName}/swagger.json"; -}); -app.UseSwaggerUI(option => -{ - option.SwaggerEndpoint("/containers/johnnyratton-sqluedo-api/swagger/v1/swagger.json", "Demo API v1"); - option.RoutePrefix = "containers/johnnyratton-sqluedo-api"; -}); +app.UseSwagger(); +app.UseSwaggerUI(); app.UseHttpsRedirection();