url-helper.js 364 Bytes
/**
 * Created by TaoHuang on 2017/2/21.
 */

'use strict';

const helpers = global.yoho.helpers;

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

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