forked from mirrors/probot
Add ping route
This commit is contained in:
parent
d680401279
commit
76223a5029
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue