mirror of
https://github.com/spacebarchat/server.git
synced 2024-09-21 10:11:34 +02:00
🔊 fix log
This commit is contained in:
parent
ba0e2bca03
commit
11ded12204
10931
package-lock.json
generated
10931
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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",
|
||||
|
@ -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" });
|
||||
|
Loading…
Reference in New Issue
Block a user