Refaktor: Aktualisierung der Endpunktzuordnung auf moderne Syntax zur verbesserten Klarheit

This commit is contained in:
Developer 02 2025-03-11 16:55:34 +01:00
parent e3be4f5e6f
commit 174338af5d

View File

@ -24,10 +24,7 @@ try
app.UseAuthorization();
// Use Ocelot middleware in an appropriate way
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
app.MapControllers();
app.UseOcelot().Wait();