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