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
// Imports dependencies and set up http server | |
const | |
express = require('express'), | |
bodyParser = require('body-parser'), | |
app = express().use(bodyParser.json()); // creates express http server | |
// Sets server port and logs message on success | |
app.listen(process.env.PORT || 1337, () => console.log('webhook is listening')); | |
// Creates the endpoint for our webhook |