aboutsummaryrefslogtreecommitdiffstats
path: root/code/api/Endpoints/Account/LogoutEndpoint.cs
blob: b392dbde3ff6b8660f56d78b6d8939b8edcf6171 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
namespace Quality.Storage.Api.Endpoints.Account;

public class LogoutEndpoint(UserService userService) : EndpointBase
{
	[HttpGet("~/account/logout")]
    public async Task<ActionResult> Handle() {
        await userService.LogOutUserAsync(HttpContext);
        return Ok();
    }
}