-
-
Save christiannwamba/5ce5e31e93f77d4a7f1d6a14ec3fce73 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.post('/comment', (req, res) => { | |
console.log(req.body); | |
pusher.trigger(req.body.channel, 'new-comment', req.body); | |
res.send('Pushed'); | |
}) | |
app.listen(2000, () => console.log('Listening at 2000')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment