Skip to content

Commit

Permalink
Simplify metrics endpoint definition
Browse files Browse the repository at this point in the history
  • Loading branch information
awaescher committed Jun 5, 2024
1 parent c9d04bd commit 13142e4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions MaxPower/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ public static void Main(string[] args)
app.UseHttpsRedirection();
app.UseRouting();

app.UseEndpoints(endpoints =>
{
endpoints.MapMetrics();
});
app.MapMetrics();

app.Run();
}
Expand Down

0 comments on commit 13142e4

Please sign in to comment.