Update server js

This commit is contained in:
Alec Maier
2019-09-02 22:30:16 -04:00
committed by GitHub
parent d62f57c7df
commit 6c833e4acf

View File

@@ -11,13 +11,6 @@ const CronJob = require('cron').CronJob;
var activeGames = {};
const job = new CronJob('* * 2 * * *', function() {
activeGames = activeGames.filter((game) => game.state !== "ended");
console.log("Games pruned at: " + (new Date()).toDateString());
});
console.log("cron job created");
job.start();
app.set('port', 5000);
app.use('/static', express.static(__dirname + '/static')); // Routing
app.use('/assets', express.static(__dirname + '/assets')); // Routing