diff --git a/src/Helldivers-2-API/Program.cs b/src/Helldivers-2-API/Program.cs index 3648928..c90ed9e 100644 --- a/src/Helldivers-2-API/Program.cs +++ b/src/Helldivers-2-API/Program.cs @@ -214,6 +214,9 @@ // Make sure ASP.NET Core uses the correct addresses internally rather than Fly's proxy app.UseForwardedHeaders(); +// Maps Prometheus to /metrics +app.MapMetrics(); + // Handles rate limiting so everyone plays nice app.UseMiddleware(); @@ -281,7 +284,4 @@ You can also find additional resources on our Github: https://github.com/helldivers-2/api Consider supporting us at https://github.com/sponsors/dealloc"); -// Maps Prometheus to /metrics -app.MapMetrics(); - await app.RunAsync();