urlHelper.js 365 Bytes
/**
 * Created by TaoHuang on 2017/2/21.
 */

'use strict';

const helpers = global.yoho.helpers;

module.exports.editorUrl = function(channel, authorId) {
    return helpers.urlFormat(`/${channel}-author-i${authorId}/`, null, 'guang');
};

module.exports.listUrl = function(channel, type) {
    return helpers.urlFormat(`/${channel}-t${type}/`, null, 'guang');
};