redenvelopes.js
343 Bytes
'use strict';
const redenvelopesModel = require('../models/redenvelopes-model');
const index = (req, res, next)=>{
let uid = '8040274';
redenvelopesModel.redenvelopesList(uid).then(result => {
res.render('redenvelopes', {
meRedEnvelopes: result
});
}).catch(next);
};
module.exports = {
index
};