able to use the api upon button click
This commit is contained in:
@ -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"
|
||||
});
|
||||
|
Reference in New Issue
Block a user