Created
January 5, 2022 22:59
-
-
Save lobot/e6a3372e70137dcb4918e1755fa259ce to your computer and use it in GitHub Desktop.
sending-check-cancel-check-method
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
/* | |
* 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