Add an endpoint to view your own system
This commit is contained in:
@@ -48,6 +48,13 @@ namespace PluralKit.API.Controllers
|
||||
_auth = auth;
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[RequiresSystem]
|
||||
public async Task<ActionResult<PKSystem>> GetOwnSystem()
|
||||
{
|
||||
return Ok(_auth.CurrentSystem);
|
||||
}
|
||||
|
||||
[HttpGet("{hid}")]
|
||||
public async Task<ActionResult<PKSystem>> GetSystem(string hid)
|
||||
{
|
||||
|
Reference in New Issue
Block a user