Add sentry support to the webapi

This commit is contained in:
Daan Boerlage 2021-09-19 16:19:40 +02:00
parent d81fb2a3d9
commit 209887e237
Signed by: daan
GPG key ID: FCE070E1E4956606
2 changed files with 2 additions and 0 deletions

View file

@ -17,6 +17,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Sentry.AspNetCore" Version="3.9.2" />
<PackageReference Include="Sodium.Core" Version="1.2.3" />
</ItemGroup>

View file

@ -40,6 +40,7 @@ namespace Geekbot.Web
options.AddPolicy("AllowSpecificOrigin",
builder => builder.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod());
});
services.AddSentry();
services.AddSingleton(databaseContext);
services.AddSingleton(globalSettings);