var express = require('express'); var router = new express.Router(); var mail = require('../mail.js'); // Escrito de cambios en méto de pago del cliente router.post('/:userFk/payment-update', function(request, response, next) { mail.sendWithTemplate('payment-update', {userId: request.params.userFk}, result => { return response.json(result); }); }); module.exports = router;