Skip to content

Instantly share code, notes, and snippets.

@lobot
Created December 16, 2021 00:48
Show Gist options
  • Save lobot/2a2b0dff8555813fed35d0155965f3d9 to your computer and use it in GitHub Desktop.
Save lobot/2a2b0dff8555813fed35d0155965f3d9 to your computer and use it in GitHub Desktop.
webhook-basics-webhook.controller.js
const mongoose = require('mongoose');
const Document = require('../models/letter');
/*
* POST /processWebhookEvent to process events from Lob.
*/
function processWebhookEventPost(req, res) {
console.log(req.body)
}
//export all the functions
module.exports = { processWebhookEventPost };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment