add whoami

This commit is contained in:
Timothy Baldridge 2022-04-02 10:32:55 -06:00
parent bfd55d3b24
commit 30a67c72a7

View File

@ -94,6 +94,14 @@ public class AuthorControls : ControllerBase
return repositories!;
}
[Route("whoami")]
[HttpGet]
public async Task<IActionResult> GetWhoAmI()
{
var user = User.FindFirstValue(ClaimTypes.Name);
return Ok(user!);
}
[Route("lists/download_metadata")]
[HttpPost]