diff --git a/package-lock.json b/package-lock.json index 1a674bc8..655911a1 100644 Binary files a/package-lock.json and b/package-lock.json differ diff --git a/package.json b/package.json index ea86955e..a32769ea 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "i18next-node-fs-backend": "^2.1.3", "image-size": "^1.0.0", "jsonwebtoken": "^8.5.1", - "lambert-server": "^1.2.7", + "lambert-server": "^1.2.8", "missing-native-js-functions": "^1.2.6", "mongoose": "^5.12.3", "mongoose-autopopulate": "^0.12.3", 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" });