Blame view

apps/guang/models/url-helper.js 358 Bytes
htoooth authored
1 2 3 4 5 6 7 8 9
/**
 * Created by TaoHuang on 2017/2/21.
 */

'use strict';

const helpers = global.yoho.helpers;

module.exports.editorUrl = function(channel, authorId) {
周少峰 authored
10
    return helpers.urlFormat(`/guang/author-${channel}-${authorId}/`, null);
htoooth authored
11 12 13
};

module.exports.listUrl = function(channel, type) {
周少峰 authored
14
    return helpers.urlFormat(`/guang/${channel}-t${type}/`, null);
htoooth authored
15
};