From af0339992afe6134fd61ffb7f478d14af44e793b Mon Sep 17 00:00:00 2001 From: Batian Muthoga Date: Thu, 24 May 2018 17:13:40 +0300 Subject: [PATCH] chore(add-status-endpoint): add status endpoint - add '/status' endpoint to indicate server is running [Delivers: #157844100] --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 5fa780b..ed2ce71 100644 --- a/index.js +++ b/index.js @@ -422,6 +422,7 @@ cron.schedule('0 22 * * 1', function() { // Start a basic HTTP server const app = express(); app.use(bodyParser.json()); +app.use('/status', (req, res) => res.status(200).send('Server up and running.')); app.use('/slack/events', slackEvents.expressMiddleware()); app.use(bodyParser.urlencoded({ extended: false })); app.use('/slack/actions', slackMessages.expressMiddleware());