mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
feat(dashboard): add opengraph/oembed, Docker build
This commit is contained in:
parent
d956bd4577
commit
15d48db6f3
12 changed files with 253 additions and 1 deletions
|
|
@ -20,6 +20,16 @@ public class SystemControllerV2: PKControllerBase
|
|||
return Ok(system.ToJson(ContextFor(system)));
|
||||
}
|
||||
|
||||
[HttpGet("{systemRef}/oembed.json")]
|
||||
public async Task<IActionResult> SystemEmbed(string systemRef)
|
||||
{
|
||||
var system = await ResolveSystem(systemRef);
|
||||
if (system == null)
|
||||
throw Errors.SystemNotFound;
|
||||
|
||||
return Ok(APIJsonExt.EmbedJson(system.Name ?? $"System with ID `{system.Hid}`", "System"));
|
||||
}
|
||||
|
||||
[HttpPatch("{systemRef}")]
|
||||
public async Task<IActionResult> DoSystemPatch(string systemRef, [FromBody] JObject data)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue