router.js 687 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('/boys', channelController.boysIndex);
router.get('/girls', channelController.boysIndex);
router.get('/kids', channelController.boysIndex);
router.get('/lifestyle', channelController.boysIndex);

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

module.exports = router;