diff options
author | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-03-08 18:28:18 +0100 |
---|---|---|
committer | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-03-08 18:28:18 +0100 |
commit | 52dec403d19a732591f9ce27ec802e3f8c480a9a (patch) | |
tree | a27ce3bbb5776554d9f98e2c628baec87ff79e95 /backend/api/api/Controllers/AuthController.cs | |
parent | 158c874a459b41cfacbd0238230dc5f48f481d44 (diff) |
Dodat dependency injection. Auth Servis povezan sa bazom
Diffstat (limited to 'backend/api/api/Controllers/AuthController.cs')
-rw-r--r-- | backend/api/api/Controllers/AuthController.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/api/api/Controllers/AuthController.cs b/backend/api/api/Controllers/AuthController.cs index 1f47067f..100ab3ca 100644 --- a/backend/api/api/Controllers/AuthController.cs +++ b/backend/api/api/Controllers/AuthController.cs @@ -9,10 +9,10 @@ namespace api.Controllers [ApiController] public class AuthController : ControllerBase { - private AuthService _auth; - public AuthController(IConfiguration configuration) + private IAuthService _auth; + public AuthController(IAuthService auth) { - _auth=new AuthService(configuration); + _auth = auth; } [HttpPost("register")] |