Skip to content

Instantly share code, notes, and snippets.

@MappingKat
Created October 24, 2016 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MappingKat/2e02203d9b0ad0d49047f97eb6b81f61 to your computer and use it in GitHub Desktop.
Save MappingKat/2e02203d9b0ad0d49047f97eb6b81f61 to your computer and use it in GitHub Desktop.
block-5
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