changes on Startup.cs
This commit is contained in:
@@ -18,9 +18,12 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="log4net" Version="2.0.8" />
|
<PackageReference Include="log4net" Version="2.0.8" />
|
||||||
|
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.1.11" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.1.11" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="2.1.11" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="2.1.11" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Logging.Log4Net.AspNetCore" Version="2.2.12" />
|
<PackageReference Include="Microsoft.Extensions.Logging.Log4Net.AspNetCore" Version="2.2.12" />
|
||||||
|
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="3.1.2" />
|
||||||
|
<PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.2.5" />
|
||||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.0.0-rc2" />
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.0.0-rc2" />
|
||||||
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="5.5.0" />
|
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="5.5.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ namespace ReallifeGamemode.DataService
|
|||||||
|
|
||||||
services
|
services
|
||||||
.AddMvc()
|
.AddMvc()
|
||||||
.AddJsonOptions(j =>
|
.AddNewtonsoftJson(j =>
|
||||||
{
|
{
|
||||||
j.SerializerSettings.NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore;
|
j.SerializerSettings.NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore;
|
||||||
j.SerializerSettings.DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc;
|
j.SerializerSettings.DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc;
|
||||||
|
|||||||
Reference in New Issue
Block a user