Skip to content

Commit

Permalink
fix #374 (#396)
Browse files Browse the repository at this point in the history
Co-authored-by: crib <[email protected]>
  • Loading branch information
ChristopheRib63 and crib authored Mar 9, 2022
1 parent a417c9f commit 08a547f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.14.0" />
<PackageReference Include="MudBlazor" Version="6.0.7" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="prometheus-net.AspNetCore" Version="6.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.3.0" />
</ItemGroup>

Expand Down
3 changes: 3 additions & 0 deletions src/AzureIoTHub.Portal/Server/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ namespace AzureIoTHub.Portal.Server
using Newtonsoft.Json.Converters;
using Polly;
using Polly.Extensions.Http;
using Prometheus;

public class Startup
{
Expand Down Expand Up @@ -236,6 +237,8 @@ public async void Configure(IApplicationBuilder app, IWebHostEnvironment env)

app.UseRouting();

app.UseMetricServer();

app.UseAuthentication();
app.UseAuthorization();

Expand Down

0 comments on commit 08a547f

Please sign in to comment.