...
|
...
|
@@ -6,7 +6,7 @@ |
|
|
|
|
|
'use strict';
|
|
|
|
|
|
const router = require('express').Router(); // eslint-disable-line
|
|
|
const router = require('express').Router({strict: true}); // eslint-disable-line
|
|
|
const cRoot = './controllers';
|
|
|
|
|
|
// Your controller here
|
...
|
...
|
@@ -14,9 +14,12 @@ 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('/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);
|
|
|
|
...
|
...
|
|