From 8769c7625cafd14e6f304601cc99a195e833d38b Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Sat, 13 Aug 2022 17:16:23 +0200 Subject: Fix config table, add plugin events, implement onPreMessageEvent, add http error data field, migrations --- src/cdn/Server.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cdn/Server.ts') 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 -- cgit 1.5.1