diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-10-31 13:16:29 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-10-31 13:17:21 +1100 |
commit | 49ae07ff297b0cffbb667d627320092a1022230c (patch) | |
tree | 5d5bdb1682052612f0b460777d7714b5502834b4 /src/api/Server.ts | |
parent | Add token check back to loginRedirect (diff) | |
download | server-49ae07ff297b0cffbb667d627320092a1022230c.tar.xz |
Allow running api, cdn, gateway separately
Diffstat (limited to 'src/api/Server.ts')
-rw-r--r-- | src/api/Server.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/api/Server.ts b/src/api/Server.ts index bd9bc4b9..6c4b5652 100644 --- a/src/api/Server.ts +++ b/src/api/Server.ts @@ -1,7 +1,7 @@ import "missing-native-js-functions"; import { Server, ServerOptions } from "lambert-server"; import { Authentication, CORS } from "./middlewares/"; -import { Config, initDatabase, initEvent } from "@fosscord/util"; +import { BannedWords, Config, initDatabase, initEvent } from "@fosscord/util"; import { ErrorHandler } from "./middlewares/ErrorHandler"; import { BodyParser } from "./middlewares/BodyParser"; import { Router, Request, Response, NextFunction } from "express"; @@ -14,7 +14,7 @@ import { initInstance } from "./util/handlers/Instance"; import { registerRoutes } from "@fosscord/util"; import { red } from "picocolors"; -export interface FosscordServerOptions extends ServerOptions {} +export interface FosscordServerOptions extends ServerOptions { } declare global { namespace Express { @@ -38,6 +38,7 @@ export class FosscordServer extends Server { await Config.init(); await initEvent(); await initInstance(); + await BannedWords.init(); let logRequests = process.env["LOG_REQUESTS"] != undefined; if (logRequests) { |