Configuration du package Microsoft.AspNetCore.Mvc.NewtonsoftJson

develop
jboinembalome 4 years ago
parent bcc0ddb5d9
commit 0fdb651fdd
  1. 2
      EPAServeur/EPAServeur.csproj
  2. 3
      EPAServeur/Startup.cs

@ -7,10 +7,10 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="3.1.9" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.12" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.7" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="3.1.7" />
<PackageReference Include="MySql.Data.EntityFrameworkCore" Version="8.0.21" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="RestSharp" Version="106.11.4" />
<PackageReference Include="Serilog.Extensions.Logging.File" Version="2.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.5.1" />

@ -42,7 +42,8 @@ namespace EPAServeur
});
});
services.AddControllers();
services.AddControllers().AddNewtonsoftJson();
services.AddAuthentication(options =>
{

Loading…
Cancel
Save