summary refs log tree commit diff
path: root/src/cdn/Server.ts
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-13 17:16:23 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-09-04 10:48:54 +0200
commit8769c7625cafd14e6f304601cc99a195e833d38b (patch)
tree94d37b1ef271490a032cde0605e1b1fb0fe01e0c /src/cdn/Server.ts
parentPlugins finally load! (diff)
downloadserver-8769c7625cafd14e6f304601cc99a195e833d38b.tar.xz
Fix config table, add plugin events, implement onPreMessageEvent, add
http error data field, migrations
Diffstat (limited to '')
-rw-r--r--src/cdn/Server.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cdn/Server.ts b/src/cdn/Server.ts

index 9cedaa02..8b684b53 100644 --- a/src/cdn/Server.ts +++ b/src/cdn/Server.ts
@@ -5,6 +5,8 @@ import path from "path"; import avatarsRoute from "./routes/avatars"; import guildProfilesRoute from "./routes/guild-profiles"; import iconsRoute from "./routes/role-icons"; +import bodyParser from "body-parser"; +import { PluginConfig } from "util/plugin/PluginConfig"; export interface CDNServerOptions extends ServerOptions {} @@ -18,6 +20,7 @@ export class CDNServer extends Server { async start() { await getOrInitialiseDatabase(); await Config.init(); + await PluginConfig.init(); this.app.use((req, res, next) => { res.set("Access-Control-Allow-Origin", "*"); // TODO: use better CSP policy