Skip to content

Commit

Permalink
Fix - Correction du mapping des routes de monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmugnier committed Oct 26, 2021
1 parent 0dc6d3f commit fb1ee44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sheaft.Web.Api/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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);
});
Expand Down

0 comments on commit fb1ee44

Please sign in to comment.