Skip to content

Commit

Permalink
Added a 'welcome page' at /
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Campos committed Aug 22, 2018
1 parent d49cf06 commit f287073
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ controller.setupWebserver(process.env.PORT || 3000, function(err, webserver) {
res.json(bot.commons);
});

// installing Welcome Page
webserver.get('/', function(req, res) {
res.send("<html><h2>The Webex Teams bot is running</h2></html>");
});

console.log("Webex Teams: healthcheck available at: " + bot.commons.healthcheck);
});

Expand Down

0 comments on commit f287073

Please sign in to comment.