mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat(apiv2): switch endpoints
This commit is contained in:
parent
f602f22a3d
commit
5add31c77e
5 changed files with 161 additions and 29 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue