From b7e39b59fd0fc7b5610ebff29035bf622079e0d8 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Wed, 5 Oct 2022 20:45:21 +0800 Subject: refactor: Change file structure --- .../src/Endpoints/Internal/Account/LogoutRoute.cs | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 server/src/Endpoints/Internal/Account/LogoutRoute.cs (limited to 'server/src/Endpoints/Internal/Account/LogoutRoute.cs') diff --git a/server/src/Endpoints/Internal/Account/LogoutRoute.cs b/server/src/Endpoints/Internal/Account/LogoutRoute.cs deleted file mode 100644 index 4a06f4a..0000000 --- a/server/src/Endpoints/Internal/Account/LogoutRoute.cs +++ /dev/null @@ -1,22 +0,0 @@ -namespace IOL.GreatOffice.Api.Endpoints.Internal.Account; - -public class LogoutRoute : RouteBaseAsync.WithoutRequest.WithActionResult -{ - private readonly UserService _userService; - - public LogoutRoute(UserService userService) { - _userService = userService; - } - - /// - /// Logout a user. - /// - /// - /// - [AllowAnonymous] - [HttpGet("~/_/account/logout")] - public override async Task HandleAsync(CancellationToken cancellationToken = default) { - await _userService.LogOutUser(HttpContext); - return Ok(); - } -} -- cgit v1.3