From 4a19e68728b61c34d6044b7fb16bd050a680b084 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=ABl=20Mugnier?= Date: Wed, 25 Nov 2020 23:11:32 +0100 Subject: [PATCH] Fix - Correction du binding de health pour le site jobs --- Sheaft.Web.Jobs/Sheaft.Web.Jobs.csproj.user | 2 +- Sheaft.Web.Jobs/Startup.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sheaft.Web.Jobs/Sheaft.Web.Jobs.csproj.user b/Sheaft.Web.Jobs/Sheaft.Web.Jobs.csproj.user index 836b9afa4..3e660ccf5 100644 --- a/Sheaft.Web.Jobs/Sheaft.Web.Jobs.csproj.user +++ b/Sheaft.Web.Jobs/Sheaft.Web.Jobs.csproj.user @@ -1,7 +1,7 @@  - Docker + jobs ProjectDebugger diff --git a/Sheaft.Web.Jobs/Startup.cs b/Sheaft.Web.Jobs/Startup.cs index 91172255d..cfe06a1e8 100644 --- a/Sheaft.Web.Jobs/Startup.cs +++ b/Sheaft.Web.Jobs/Startup.cs @@ -308,12 +308,12 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IOptions app.UseEndpoints(endpoints => { - endpoints.MapControllers(); endpoints.MapHangfireDashboard("", new DashboardOptions { AppPath = "https://app.sheaft.com", Authorization = new[] { new MyAuthorizationFilter() } }); + endpoints.MapControllerRoute("default", "{controller=Home}/{action=Index}/{id?}"); }); RecuringJobs.Register(routineOptions.Value);