Add sentry support to the webapi
This commit is contained in:
parent
d81fb2a3d9
commit
209887e237
2 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Sentry.AspNetCore" Version="3.9.2" />
|
||||
<PackageReference Include="Sodium.Core" Version="1.2.3" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
|
@ -40,6 +40,7 @@ namespace Geekbot.Web
|
|||
options.AddPolicy("AllowSpecificOrigin",
|
||||
builder => builder.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod());
|
||||
});
|
||||
services.AddSentry();
|
||||
|
||||
services.AddSingleton(databaseContext);
|
||||
services.AddSingleton(globalSettings);
|
||||
|
|
Loading…
Reference in a new issue