Large refactor and project restructuring

This commit is contained in:
Ske
2020-02-12 15:16:19 +01:00
parent c10e197c39
commit 6d5004bf54
71 changed files with 1664 additions and 1607 deletions

View File

@@ -1,17 +1,20 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Dapper;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using NodaTime;
using PluralKit.Core;
namespace PluralKit.API.Controllers
namespace PluralKit.API
{
public struct SwitchesReturn
{
@@ -130,9 +133,9 @@ namespace PluralKit.API.Controllers
try
{
system.Apply(changes);
system.ApplyJson(changes);
}
catch (PKParseError e)
catch (JsonModelParseError e)
{
return BadRequest(e.Message);
}