From fb1ee44f409ec174863cd04895b7ec108979dfa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=ABl=20Mugnier?= Date: Tue, 26 Oct 2021 15:07:21 +0200 Subject: [PATCH] Fix - Correction du mapping des routes de monitoring --- Sheaft.Web.Api/Startup.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sheaft.Web.Api/Startup.cs b/Sheaft.Web.Api/Startup.cs index a8cb07f54..8722011d5 100644 --- a/Sheaft.Web.Api/Startup.cs +++ b/Sheaft.Web.Api/Startup.cs @@ -365,7 +365,7 @@ public void ConfigureServices(IServiceCollection services) }); services.AddRazorTemplating(); - services.AddMvc(option => option.EnableEndpointRouting = true); + services.AddMvc(); } public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IConfiguration configuration) @@ -492,7 +492,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IConfigu app.UseEndpoints(endpoints => { - endpoints.MapControllers(); + endpoints.MapControllerRoute("default", "{controller=Home}/{action=Index}/{id?}"); endpoints.MapGraphQL() .RequireAuthorization(Policies.ANONYMOUS_OR_CONNECTED); });