diff options
author | Puyodead1 <puyodead@proton.me> | 2022-12-22 10:47:32 -0500 |
---|---|---|
committer | Puyodead1 <puyodead@proton.me> | 2023-03-18 19:15:40 -0400 |
commit | 6a52e65e27d514273a4210dadafbee9692f23354 (patch) | |
tree | c2eb70b2b7c4be1a482392ca8982459885e1865c /src/api/Server.ts | |
parent | add connections (diff) | |
download | server-6a52e65e27d514273a4210dadafbee9692f23354.tar.xz |
adding connection now works
Diffstat (limited to 'src/api/Server.ts')
-rw-r--r-- | src/api/Server.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/api/Server.ts b/src/api/Server.ts index 49229494..dc3b66ef 100644 --- a/src/api/Server.ts +++ b/src/api/Server.ts @@ -25,6 +25,8 @@ import { registerRoutes, Sentry, WebAuthn, + ConnectionConfig, + ConnectionLoader } from "@fosscord/util"; import { Request, Response, Router } from "express"; import { Server, ServerOptions } from "lambert-server"; @@ -64,6 +66,7 @@ export class FosscordServer extends Server { await Config.init(); await initEvent(); await Email.init(); + await ConnectionConfig.init(); await initInstance(); await Sentry.init(this.app); WebAuthn.init(); @@ -130,6 +133,8 @@ export class FosscordServer extends Server { Sentry.errorHandler(this.app); + ConnectionLoader.loadConnections(); + if (logRequests) console.log( red( |