summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-07-18 19:49:10 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-07-18 19:49:10 +0200
commit11ded12204abb72f003f4b9d73714fddad66e981 (patch)
tree94bc4304cf0e0f7665ab1672ca460f6cb9df60fb /src
parent:bug: remove bin from package.json (diff)
downloadserver-11ded12204abb72f003f4b9d73714fddad66e981.tar.xz
:loud_sound: fix log
Diffstat (limited to 'src')
-rw-r--r--src/Server.ts4
1 files changed, 2 insertions, 2 deletions
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<Connection>); 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" });