refactoring

master
Tudor Stanciu 2023-01-30 19:19:21 +02:00
parent 3b2c485298
commit 8b9e064881
1 changed files with 1 additions and 3 deletions

View File

@ -7,7 +7,6 @@ using Netmash.Extensions.Swagger;
using Netmash.Extensions.Swagger.Constants;
using Netmash.Security.Authentication.Identity;
using NetworkResurrector.Agent.Application;
using Newtonsoft.Json;
using System.Reflection;
namespace NetworkResurrector.Agent.Extensions
@ -16,8 +15,7 @@ namespace NetworkResurrector.Agent.Extensions
{
public static void ConfigureServices(this IServiceCollection services, IConfiguration configuration)
{
services.AddControllers()
.AddNewtonsoftJson(o => o.SerializerSettings.DateTimeZoneHandling = DateTimeZoneHandling.Utc);
services.AddControllers();
// Add basic authentication
services.AddIdentityAuthentication(configuration.GetSection("IdentityServer")["BaseAddress"]);