13 lines
379 B
JavaScript
13 lines
379 B
JavaScript
var express = require('express');
|
|
var router = new express.Router();
|
|
var mail = require('../mail.js');
|
|
|
|
// Payment method changes
|
|
router.post('/:recipient/payment-update', function(request, response, next) {
|
|
mail.sendWithTemplate('payment-update', {recipient: request.params.recipient}, result => {
|
|
return response.json(result);
|
|
});
|
|
});
|
|
|
|
module.exports = router;
|