Fix issue #1088 (Ocelot Administration doesn't work with .NET Core 3.x)

Fixed OcelotMiddlewareConfigurationDelegate configuration
This commit is contained in:
EL Aisati Ahmed
2020-02-04 17:59:39 +01:00
parent e3a14142b7
commit e45071fa10
3 changed files with 16 additions and 14 deletions

View File

@ -27,7 +27,13 @@
}
app.UseAuthentication();
app.UseMvc();
app.UseRouting();
app.UseAuthorization();
app.UseEndpoints(endpoints =>
{
endpoints.MapDefaultControllerRoute();
endpoints.MapControllers();
});
});
}