diff --git a/MaxPower/Program.cs b/MaxPower/Program.cs index 4fe8142..887c40b 100644 --- a/MaxPower/Program.cs +++ b/MaxPower/Program.cs @@ -41,10 +41,7 @@ public static void Main(string[] args) app.UseHttpsRedirection(); app.UseRouting(); - app.UseEndpoints(endpoints => - { - endpoints.MapMetrics(); - }); + app.MapMetrics(); app.Run(); }