summaryrefslogtreecommitdiffstats
path: root/src/server/Api/Internal/Account/EndSessionRoute.cs
blob: 4f321684b315dc3cf3ed648836b09581646dfd84 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
namespace IOL.BookmarkThing.Server.Api.Internal.Account;

public class EndSessionRoute : RouteBaseInternalAsync.WithoutRequest.WithActionResult
{
	[AllowAnonymous]
	[ApiVersionNeutral]
	[ApiExplorerSettings(IgnoreApi = true)]
	[HttpGet("~/v{version:apiVersion}/account/end-session")]
	public override async Task<ActionResult> HandleAsync(CancellationToken cancellationToken = default) {
		await HttpContext.SignOutAsync();
		return Ok();
	}
}