diff options
Diffstat (limited to 'src/api/Server.ts')
-rw-r--r-- | src/api/Server.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/api/Server.ts b/src/api/Server.ts index 0177be40..01c60f23 100644 --- a/src/api/Server.ts +++ b/src/api/Server.ts @@ -19,7 +19,13 @@ import "missing-native-js-functions"; import { Server, ServerOptions } from "lambert-server"; import { Authentication, CORS } from "./middlewares/"; -import { Config, initDatabase, initEvent, Sentry } from "@fosscord/util"; +import { + Config, + initDatabase, + initEvent, + Sentry, + WebAuthn, +} from "@fosscord/util"; import { ErrorHandler } from "./middlewares/ErrorHandler"; import { BodyParser } from "./middlewares/BodyParser"; import { Router, Request, Response } from "express"; @@ -58,6 +64,7 @@ export class FosscordServer extends Server { await initEvent(); await initInstance(); await Sentry.init(this.app); + WebAuthn.init(); const logRequests = process.env["LOG_REQUESTS"] != undefined; if (logRequests) { |