able to use the api upon button click

This commit is contained in:
Michael Q Larson
2015-04-08 22:42:40 -07:00
parent e3acdb9ebb
commit 9145e959de
4 changed files with 65 additions and 1 deletions

View File

@ -74,6 +74,11 @@ module.exports = {
},
chat: function chat(req, res) {
if (req.user) {
if (req.user.sentSlackInvite) {
res.redirect('https://freecode.slack.com/messages/general/');
}
}
res.render('resources/chat', {
title: "Enter Free Code Camp's Chat Rooms"
});