router.js 802 Bytes
/**
 * router of sub app product
 * @author: xuqi<qi.xu@yoho.cn>
 * @date: 2016/05/06
 */

'use strict';

const router = require('express').Router();  // eslint-disable-line
const cRoot = './controllers';

// 商品详情controller
// const detail = require(`${cRoot}/detail`);

// 商品促销controller
const sale = require(`${cRoot}/sale`);

// 奥特莱斯controller
const outlets = require(`${cRoot}/outlets`);

// 商品促销routers
router.get('/sale/index', sale.index);
router.get('/sale/discount', sale.discount);
router.get('/sale/vip', sale.vip);
router.get('/sale/breakingYards', sale.breakingYards);
router.get('/sale/newSale', sale.newSale);

// 奥特莱斯routers
router.get('/outlets/index', outlets.index);
router.get('/outlets/:channel', outlets.channel);

module.exports = router;