questionnaire.js 393 Bytes
'use strict';

const helpers = global.yoho.helpers;

const getQuestionnaire = (req, res) => {
    let id = req.params.id || '';

    res.redirect(helpers.urlFormat(`/3party/questionnaire/${id}`, null, 'm'));
};

const getQuestionList = (req, res) => {
    res.redirect(helpers.urlFormat('/3party/questionnaire', null, 'm'));
};

module.exports = {
    getQuestionnaire,
    getQuestionList
};