mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
37 lines
877 B
C#
37 lines
877 B
C#
|
|
using System;
|
||
|
|
using System.Threading.Tasks;
|
||
|
|
|
||
|
|
using Microsoft.AspNetCore.Mvc;
|
||
|
|
|
||
|
|
using Newtonsoft.Json.Linq;
|
||
|
|
|
||
|
|
using PluralKit.Core;
|
||
|
|
|
||
|
|
namespace PluralKit.API
|
||
|
|
{
|
||
|
|
[ApiController]
|
||
|
|
[ApiVersion("2.0")]
|
||
|
|
[Route("v{version:apiVersion}/systems")]
|
||
|
|
public class SystemControllerV2: PKControllerBase
|
||
|
|
{
|
||
|
|
public SystemControllerV2(IServiceProvider svc) : base(svc) { }
|
||
|
|
|
||
|
|
[HttpGet("{system}")]
|
||
|
|
public async Task<IActionResult> SystemGet(string system)
|
||
|
|
{
|
||
|
|
return new ObjectResult("Unimplemented")
|
||
|
|
{
|
||
|
|
StatusCode = 501
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
[HttpPatch("{system}")]
|
||
|
|
public async Task<IActionResult> SystemPatch(string system, [FromBody] JObject data)
|
||
|
|
{
|
||
|
|
return new ObjectResult("Unimplemented")
|
||
|
|
{
|
||
|
|
StatusCode = 501
|
||
|
|
};
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|