mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
add whoami
This commit is contained in:
parent
bfd55d3b24
commit
30a67c72a7
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user