feat: add option to display server capacity

This commit is contained in:
Jon Eugster
2024-09-26 18:07:25 +02:00
parent af15982804
commit ebd7268421
3 changed files with 62 additions and 0 deletions
+4
View File
@@ -52,6 +52,10 @@ const server = app
req.url = filename;
express.static(path.join(getGameDir(owner,repo),".lake","gamedata"))(req, res, next);
})
.use('/data/stats', (req, res, next) => {
// stats file for server usage
express.static(path.join(__dirname, '..', 'games', 'stats.csv'))(req, res, next);
})
.use('/', router)
.listen(PORT, () => console.log(`Listening on ${PORT}`));