Refactor
This commit is contained in:
parent
b774357807
commit
57d7009342
39 changed files with 203 additions and 250 deletions
|
|
@ -28,19 +28,19 @@ const gameServer = new GameServer(io, options);
|
|||
|
||||
app.use(
|
||||
cors({
|
||||
origin: (origin, callback) => {
|
||||
origin: (_, callback) => {
|
||||
callback(null, true);
|
||||
},
|
||||
credentials: true,
|
||||
}),
|
||||
);
|
||||
|
||||
app.get(serverInformationEndpoint, (req, res) => {
|
||||
app.get(serverInformationEndpoint, (_, res) => {
|
||||
res.json(gameServer.serverInfo);
|
||||
});
|
||||
|
||||
server.listen(options.port, () => {
|
||||
console.log(`server started at http://localhost:${options.port}`);
|
||||
console.info(`Server started on port ${options.port}`);
|
||||
});
|
||||
|
||||
gameServer.start();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue