Blame view

apps/3party/controllers/questionnaire.js 477 Bytes
OF1706 authored
1 2 3 4 5
'use strict';

const helpers = global.yoho.helpers;

const getQuestionnaire = (req, res) => {
yyq authored
6
    let id = req.params.id || '';
OF1706 authored
7
yyq authored
8
    res.set('Cache-Control', 'no-cache');
yyq authored
9
    res.redirect(helpers.urlFormat(`/3party/questionnaire/${id}`, null, 'm'));
OF1706 authored
10 11
};
yyq authored
12
const getQuestionList = (req, res) => {
yyq authored
13
    res.set('Cache-Control', 'no-cache');
yyq authored
14 15 16
    res.redirect(helpers.urlFormat('/3party/questionnaire', null, 'm'));
};
OF1706 authored
17
module.exports = {
yyq authored
18 19
    getQuestionnaire,
    getQuestionList
OF1706 authored
20
};