mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
feat(apiv2): GET endpoints except guilds
- ResolveT methods in ControllerBase - ContextFor methods in ControllerBase
This commit is contained in:
parent
11620d94c8
commit
e2a56a198f
9 changed files with 249 additions and 60 deletions
|
|
@ -21,7 +21,7 @@ namespace PluralKit.API
|
|||
{
|
||||
var system = await ResolveSystem(systemRef);
|
||||
if (system == null) return NotFound();
|
||||
else return Ok(system.ToJson(LookupContextFor(system)));
|
||||
else return Ok(system.ToJson(this.ContextFor(system), v: APIVersion.V2));
|
||||
}
|
||||
|
||||
[HttpPatch("{system}")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue