Website Summary Files Commits Branches @commit @diff @stats
path: root / API / Controllers
diff options
context:
space:
mode:
Commit9b287f08b8e2c8d091967597bc9610afea8058ca (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2020-12-12 14:47:33 +0200
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2020-12-12 14:47:33 +0200
Filesc4d24122bbe0e90774892d0b4c3a87952a988887 /API/Controllers
DevHive-9b287f08b8e2c8d091967597bc9610afea8058ca.tar
DevHive-9b287f08b8e2c8d091967597bc9610afea8058ca.tar.gz
DevHive-9b287f08b8e2c8d091967597bc9610afea8058ca.zip
Parent688fd7d0ad87ba9a7e72266cd5f7f7f493d9cc38 (diff)
Improved appsettings.json reading
1 files changed, 3 insertions, 3 deletions
-rw-r--r--API/Controllers/UserController.cs6
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]