Implementing sign off

This commit is contained in:
Zoe Roux 2020-03-10 22:29:11 +01:00
parent c5b6b62925
commit 9af58b41a2
2 changed files with 9 additions and 1 deletions

View File

@ -62,6 +62,14 @@ namespace Kyoo.Api
return Ok();
}
[HttpGet("logout")]
[Authorize]
public async Task<IActionResult> Logout()
{
await _signInManager.SignOutAsync();
return Ok();
}
[HttpGet]
[Authorize]
public async Task<ActionResult<Account>> Index()

@ -1 +1 @@
Subproject commit afdddfd7b12d9e31367cec4ad20c3ea2ac169f0c
Subproject commit a426f2da8ff72cf0da5a173791f95e39ded8834e