router.js 745 Bytes
/**
 * router of sub app channel
 * @author: Bi Kai<kai.bi@yoho.cn>
 * @date: 2016/05/09
 */

'use strict';

const expressRouter = require('express').Router;
const cRoot = './controllers';
const channel = require(cRoot + '/channel');
const brand = require(cRoot + '/brand');

const router = expressRouter();

router.get('/', channel.index); // 首页
router.get('/men', channel.index); // 首页
router.get('/women', channel.index); // 首页
router.get('/lifestyle', channel.index); // 首页
router.get('/resources', channel.resources); // 资源位接口
router.get('/brand', brand.index); // 店铺首页
router.get('/brand-list', brand.brandList); // 店铺首页
router.get('/cate', brand.cate); // 全部分类


module.exports = router;