aboutsummaryrefslogtreecommitdiff
path: root/API/Controllers
diff options
context:
space:
mode:
Diffstat (limited to 'API/Controllers')
-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]