diff --git a/lib/server.js b/lib/server.js index 93ee6c33..507fedf5 100644 --- a/lib/server.js +++ b/lib/server.js @@ -7,6 +7,8 @@ module.exports = function (webhook) { console.error(err); res.statusCode = 500; res.end('Something has gone terribly wrong.'); + } else if (req.url.split('?').shift() === '/ping') { + res.end('PONG'); } else { res.statusCode = 404; res.end('no such location');