router.js 858 Bytes
/**
 * router of sub app girls
 * @author: biao<bill.zhao@yoho.cn>
 * @date: 2016/05/16
 */

'use strict';

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

// Your controller here
const channelController = require(`${cRoot}/index`);

// 频道页路由
router.get('/', channelController.index);
router.get('/woman', channelController.index);
router.get('/kids', channelController.index);
router.get('/lifestyle', channelController.index);
router.get('/*/japanKorean', channelController.index);
router.get('/channel/isNewUserAjax', channelController.hasNewUserFloor);

// ajax
router.get('/getbrandFloorDataAjax', channelController.getbrandFloorDataAjax);
router.post('/common/getNewArrival', channelController.getNewArrival);
router.get('/guide', channelController.getIndexGuide);

module.exports = router;