Skip to content

Instantly share code, notes, and snippets.

@zlwaterfield
Created October 26, 2019 22:21
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 zlwaterfield/67db23a745a9d342e3a3fca0463b966b to your computer and use it in GitHub Desktop.
Save zlwaterfield/67db23a745a9d342e3a3fca0463b966b to your computer and use it in GitHub Desktop.
// Stripe Webhooks
app.post('/api/v1/webhooks', bodyParser.raw({ type: '*/*' }), webhooks.index);
// Parse body to into JSON
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.use(cookieParser());
// All other routes
app.use('/', routes);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment