Skip to content

Instantly share code, notes, and snippets.

@lobot
Created January 5, 2022 22:59
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 lobot/e6a3372e70137dcb4918e1755fa259ce to your computer and use it in GitHub Desktop.
Save lobot/e6a3372e70137dcb4918e1755fa259ce to your computer and use it in GitHub Desktop.
sending-check-cancel-check-method
/*
* GET / route to cancel a check.
*/
function cancelACheck(req, res) {
const checkId = req.params.checkId
Lob.checks.delete(checkId, function (err, response) {
const check = response
res.render('check', { check })
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment