vip.js 264 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 'use strict'; const vipModel = require('../models/vip-service'); const index = (req, res, next)=>{ let uid = req.user.uid; vipModel.vipIndex(uid).then(result => { res.render('vip', result); }).catch(next); }; module.exports = { index };