From 0fdb651fddf52abb4b17153ffd8a59a205693c7c Mon Sep 17 00:00:00 2001 From: jboinembalome Date: Thu, 11 Feb 2021 15:51:23 +0100 Subject: [PATCH] Configuration du package Microsoft.AspNetCore.Mvc.NewtonsoftJson --- EPAServeur/EPAServeur.csproj | 2 +- EPAServeur/Startup.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/EPAServeur/EPAServeur.csproj b/EPAServeur/EPAServeur.csproj index 6f38212..a72dab4 100644 --- a/EPAServeur/EPAServeur.csproj +++ b/EPAServeur/EPAServeur.csproj @@ -7,10 +7,10 @@ + - diff --git a/EPAServeur/Startup.cs b/EPAServeur/Startup.cs index 887dfc8..cacfb6b 100644 --- a/EPAServeur/Startup.cs +++ b/EPAServeur/Startup.cs @@ -42,7 +42,8 @@ namespace EPAServeur }); }); - services.AddControllers(); + services.AddControllers().AddNewtonsoftJson(); + services.AddAuthentication(options => {