From 7dcdb0c47b83956c7ef3521018b9a358728bcc91 Mon Sep 17 00:00:00 2001 From: Sam Calder-Mason Date: Fri, 27 Mar 2020 21:56:38 +1100 Subject: [PATCH] linting --- server.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server.js b/server.js index c14fc827..74e8cff3 100644 --- a/server.js +++ b/server.js @@ -38,11 +38,13 @@ ptserver.get('/health', (req, res) => { } return res.send(JSON.stringify({ load })).end(); }); + ptserver.get('/users', (req, res) => { res.setHeader('Content-Type', 'application/json'); const users = Object.keys(ptserver_io.sockets.connected).length; return res.send(JSON.stringify({ users })).end(); }); + ptserver.get('/', (req, res) => res.send('You\'ve connected to the SLServer, you\'re probably looking for the webapp.')); // Merge everything together