Add /api/Login/Logout endpoint.

This commit is contained in:
Jared Goodwin 2020-01-13 22:04:25 -08:00
parent 907f33e713
commit 10f7a40419

View File

@ -55,5 +55,12 @@ namespace Remotely.Server.API
DataService.WriteEvent($"API login unsuccessful due to bad attempt for {login.Email}.");
return BadRequest();
}
[HttpGet("Logout")]
public async Task<IActionResult> Logout()
{
await SignInManager.SignOutAsync();
return Ok();
}
}
}