feat(apiv2): switch endpoints

This commit is contained in:
spiral
2021-10-13 05:29:33 -04:00
parent f602f22a3d
commit 5add31c77e
5 changed files with 161 additions and 29 deletions

View File

@@ -57,7 +57,12 @@ namespace PluralKit.API
services.AddControllers()
.SetCompatibilityVersion(CompatibilityVersion.Latest)
.AddNewtonsoftJson(); // sorry MS, this just does *more*
// sorry MS, this just does *more*
.AddNewtonsoftJson((opts) =>
{
// ... though by default it messes up timestamps in JSON
opts.SerializerSettings.DateParseHandling = DateParseHandling.None;
});
services.AddApiVersioning();