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); });