aboutsummaryrefslogtreecommitdiffstats
path: root/code/api/Endpoints/Account/LogoutEndpoint.cs
diff options
context:
space:
mode:
Diffstat (limited to 'code/api/Endpoints/Account/LogoutEndpoint.cs')
-rw-r--r--code/api/Endpoints/Account/LogoutEndpoint.cs14
1 files changed, 4 insertions, 10 deletions
diff --git a/code/api/Endpoints/Account/LogoutEndpoint.cs b/code/api/Endpoints/Account/LogoutEndpoint.cs
index de03e8e..b392dbd 100644
--- a/code/api/Endpoints/Account/LogoutEndpoint.cs
+++ b/code/api/Endpoints/Account/LogoutEndpoint.cs
@@ -1,16 +1,10 @@
-namespace I2R.Storage.Api.Endpoints.Account;
+namespace Quality.Storage.Api.Endpoints.Account;
-public class LogoutEndpoint : EndpointBase
+public class LogoutEndpoint(UserService userService) : EndpointBase
{
- private readonly UserService _userService;
-
- public LogoutEndpoint(UserService userService) {
- _userService = userService;
- }
-
- [HttpGet("~/account/logout")]
+ [HttpGet("~/account/logout")]
public async Task<ActionResult> Handle() {
- await _userService.LogOutUserAsync(HttpContext);
+ await userService.LogOutUserAsync(HttpContext);
return Ok();
}
} \ No newline at end of file