coupons.js
358 Bytes
'use strict';
const Promise = require('bluebird');
const co = Promise.coroutine;
let couponsModel = require('../models/coupons-model');
const index = (req, res, next)=>{
let uid = '8041246';
couponsModel.couponsData(uid, req.query).then(result => {
res.render('coupons', result);
}).catch(next);
};
module.exports = {
index
};