Skip to content

Commit 13142e4

Browse files
committed
Simplify metrics endpoint definition
1 parent c9d04bd commit 13142e4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

MaxPower/Program.cs

+1-4
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ public static void Main(string[] args)
4141
app.UseHttpsRedirection();
4242
app.UseRouting();
4343

44-
app.UseEndpoints(endpoints =>
45-
{
46-
endpoints.MapMetrics();
47-
});
44+
app.MapMetrics();
4845

4946
app.Run();
5047
}

0 commit comments

Comments
 (0)