From 9b287f08b8e2c8d091967597bc9610afea8058ca Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 12 Dec 2020 14:47:33 +0200 Subject: Improved appsettings.json reading --- API/Controllers/UserController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'API/Controllers/UserController.cs') diff --git a/API/Controllers/UserController.cs b/API/Controllers/UserController.cs index fd94283..ceeee33 100644 --- a/API/Controllers/UserController.cs +++ b/API/Controllers/UserController.cs @@ -5,7 +5,7 @@ using AutoMapper; using Microsoft.AspNetCore.Mvc; using Data.Models.DTOs; using Microsoft.AspNetCore.Authorization; -using Data.Models.Classes; +using Data.Models.Options; using Microsoft.Extensions.Configuration; namespace API.Controllers @@ -16,9 +16,9 @@ namespace API.Controllers { private readonly UserService _service; - public UserController(DevHiveContext context, IMapper mapper, IConfiguration configuration) + public UserController(DevHiveContext context, IMapper mapper, JWTOptions jwtOptions) { - this._service = new UserService(context, mapper, configuration.GetSection("AppSettings")); + this._service = new UserService(context, mapper, jwtOptions); } [HttpPost] -- cgit v1.2.3