questionnaire.js
477 Bytes
'use strict';
const helpers = global.yoho.helpers;
const getQuestionnaire = (req, res) => {
let id = req.params.id || '';
res.set('Cache-Control', 'no-cache');
res.redirect(helpers.urlFormat(`/3party/questionnaire/${id}`, null, 'm'));
};
const getQuestionList = (req, res) => {
res.set('Cache-Control', 'no-cache');
res.redirect(helpers.urlFormat('/3party/questionnaire', null, 'm'));
};
module.exports = {
getQuestionnaire,
getQuestionList
};