Skip to content

Commit

Permalink
chore(add-status-endpoint): add status endpoint
Browse files Browse the repository at this point in the history
- add '/status' endpoint to indicate server is running

[Delivers: #157844100]
  • Loading branch information
bmuthoga authored and O'Brian Kimokot committed May 24, 2018
1 parent 7b30705 commit af03399
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit af03399

Please sign in to comment.