router.js
989 Bytes
/**
* router of sub app girls
* @author: biao<bill.zhao@yoho.cn>
* @date: 2016/05/16
*/
'use strict';
const router = require('express').Router({strict: true}); // eslint-disable-line
const cRoot = './controllers';
// Your controller here
const channelController = require(`${cRoot}/index`);
// 频道页路由
router.get('/', channelController.index);
router.get('/woman', channelController.redirect('/girls/'));
router.get('/girls/', channelController.index);
router.get('/kids', channelController.redirect('/kids/'));
router.get('/kids/', channelController.index);
router.get('/lifestyle', channelController.redirect('/lifestyle/'));
router.get('/lifestyle/', channelController.index);
router.get('/japanKorean', channelController.japanKorean);
router.get('/channel/isNewUserAjax', channelController.hasNewUserFloor);
// ajax
router.post('/common/getNewArrival', channelController.getNewArrival);
router.get('/guide', channelController.getIndexGuide);
module.exports = router;