1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 20:52:42 +01:00

API versions 6 & 7 with minor logging additions

This commit is contained in:
Thesourtimes 2021-11-10 19:44:11 +03:00
parent b7d2467ca2
commit c33672058d
2 changed files with 5 additions and 2 deletions

View File

@ -85,6 +85,8 @@ export class FosscordServer extends Server {
});
this.app = app;
app.use("/api/v6", api);
app.use("/api/v7", api);
app.use("/api/v8", api);
app.use("/api/v9", api);
app.use("/api", api); // allow unversioned requests

View File

@ -38,11 +38,12 @@ if (cluster.isMaster) {
})`
)}
Current commit: ${
Commit Hash: ${
commit !== null
? `${cyan(commit)} (${yellow(commit.slice(0, 7))})`
: "Unknown (Git cannot be found)"
}
Cores: ${cyan(cores)}
`)
);
@ -65,7 +66,7 @@ Current commit: ${
let delay = process.env.DATABASE?.includes("://") ? 0 : i * 1000;
setTimeout(() => {
cluster.fork();
console.log(`[Process] worker ${i} started.`);
console.log(`[Process] worker ${cyan(i)} started.`);
}, delay);
}