aboutsummaryrefslogtreecommitdiff
path: root/API/Controllers/UserController.cs
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2020-12-12 14:47:33 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2020-12-12 14:47:33 +0200
commit9b287f08b8e2c8d091967597bc9610afea8058ca (patch)
treec4d24122bbe0e90774892d0b4c3a87952a988887 /API/Controllers/UserController.cs
parent688fd7d0ad87ba9a7e72266cd5f7f7f493d9cc38 (diff)
downloadDevHive-9b287f08b8e2c8d091967597bc9610afea8058ca.tar
DevHive-9b287f08b8e2c8d091967597bc9610afea8058ca.tar.gz
DevHive-9b287f08b8e2c8d091967597bc9610afea8058ca.zip
Improved appsettings.json reading
Diffstat (limited to 'API/Controllers/UserController.cs')
-rw-r--r--API/Controllers/UserController.cs6
1 files changed, 3 insertions, 3 deletions
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]