Created
October 24, 2016 20:52
-
-
Save MappingKat/2e02203d9b0ad0d49047f97eb6b81f61 to your computer and use it in GitHub Desktop.
block-5
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
var fulcrumMiddlewareConfig = { | |
actions: ['record.create', 'record.update', 'record.delete'], | |
processor: payloadProcessor | |
}; | |
app.use('/', fulcrumMiddleware(fulcrumMiddlewareConfig)); | |
// this is for decorative purposes. It adds a little HTML to the front end of your URL so that you can check to make sure things are up and running | |
app.get('/', function (req, res) { | |
res.send('<html><head><title>The Webhook Script</title></head><body><h2>is Running!</h2><p>going</p></body></html>'); | |
}) | |
// this function allows you to serve the script locally for testing | |
app.listen(PORT, function () { | |
console.log('Listening on port ' + PORT); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment