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>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Sentry.AspNetCore" Version="3.9.2" />
|
||||||
<PackageReference Include="Sodium.Core" Version="1.2.3" />
|
<PackageReference Include="Sodium.Core" Version="1.2.3" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,7 @@ namespace Geekbot.Web
|
||||||
options.AddPolicy("AllowSpecificOrigin",
|
options.AddPolicy("AllowSpecificOrigin",
|
||||||
builder => builder.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod());
|
builder => builder.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod());
|
||||||
});
|
});
|
||||||
|
services.AddSentry();
|
||||||
|
|
||||||
services.AddSingleton(databaseContext);
|
services.AddSingleton(databaseContext);
|
||||||
services.AddSingleton(globalSettings);
|
services.AddSingleton(globalSettings);
|
||||||
|
|
Loading…
Reference in a new issue