diff --git a/Program.cs b/Program.cs index ea89877..7616c49 100644 --- a/Program.cs +++ b/Program.cs @@ -24,10 +24,7 @@ try app.UseAuthorization(); // Use Ocelot middleware in an appropriate way - app.UseEndpoints(endpoints => - { - endpoints.MapControllers(); - }); + app.MapControllers(); app.UseOcelot().Wait();