feat(apiv2): GET endpoints except guilds

- ResolveT methods in ControllerBase
- ContextFor methods in ControllerBase
This commit is contained in:
spiral
2021-10-12 05:17:54 -04:00
parent 11620d94c8
commit e2a56a198f
9 changed files with 249 additions and 60 deletions

View File

@@ -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}")]