summary refs log tree commit diff
path: root/src/api/Server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/Server.ts')
-rw-r--r--src/api/Server.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/api/Server.ts b/src/api/Server.ts

index 01c60f23..7eb4e6f1 100644 --- a/src/api/Server.ts +++ b/src/api/Server.ts
@@ -23,6 +23,7 @@ import { Config, initDatabase, initEvent, + JSONReplacer, Sentry, WebAuthn, } from "@fosscord/util"; @@ -84,6 +85,8 @@ export class FosscordServer extends Server { ); } + this.app.set("json replacer", JSONReplacer); + this.app.use(CORS); this.app.use(BodyParser({ inflate: true, limit: "10mb" }));