From 11ded12204abb72f003f4b9d73714fddad66e981 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sun, 18 Jul 2021 19:49:10 +0200 Subject: :loud_sound: fix log --- src/Server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Server.ts b/src/Server.ts index a1b51d21..39b1930d 100644 --- a/src/Server.ts +++ b/src/Server.ts @@ -64,7 +64,7 @@ export class FosscordServer extends Server { // @ts-ignore await (db as Promise); await this.setupSchema(); - console.log("[DB] connected"); + console.log("[Database] connected"); await Config.init(); this.app.use(CORS); @@ -100,9 +100,9 @@ export class FosscordServer extends Server { prefix.use("/channels/:id", RateLimit({ count: 5, window: 5 })); this.routes = await this.registerRoutes(path.join(__dirname, "routes", "/")); - app.use("/api", prefix); // allow unversioned requests app.use("/api/v8", prefix); app.use("/api/v9", prefix); + app.use("/api", prefix); // allow unversioned requests this.app = app; this.app.use(ErrorHandler); const indexHTML = fs.readFileSync(path.join(__dirname, "..", "client_test", "index.html"), { encoding: "utf8" }); -- cgit 1.5.1