Skip to content
Snippets Groups Projects
Commit 494053a1 authored by Benedikt Heinrichs's avatar Benedikt Heinrichs
Browse files

AddNewtonsoftJson to controllers for keeping compatibility with returns (coscine/issues#1333)

parent c94ea1a0
Branches Topic/1333-dotnet5apicommons
No related tags found
2 merge requests!58Product/1287 dotnet5 sharepoint,!55Topic/1333 dotnet5apicommons
......@@ -42,7 +42,7 @@ namespace Coscine.ApiCommons
{
options.AllowSynchronousIO = true;
});
services.AddControllersWithViews();
services.AddControllersWithViews().AddNewtonsoftJson();
ConfigureServicesExtensionLate(services);
}
......
......@@ -34,7 +34,7 @@ namespace Coscine.ApiCommons
{
options.AllowSynchronousIO = true;
});
services.AddControllers();
services.AddControllersWithViews().AddNewtonsoftJson();
var key = _jWTHandler.GetSecurityKey();
services.AddAuthentication(x =>
......
......@@ -28,7 +28,7 @@
<PackageReference Include="Coscine.Logging" Version="2.*-*" />
<PackageReference Include="linq2db" Version="3.2.3" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="5.0.3" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="5.0.3" />
<PackageReference Include="NLog" Version="4.7.7" />
<PackageReference Include="NLog.Web.AspNetCore" Version="4.10.0" />
<PackageReference Include="NSwag.AspNetCore" Version="13.10.2" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment