Authored by 周少峰

move to service

... ... @@ -13,7 +13,6 @@ const cate = require(cRoot + '/cate');
const brandController = require(`${cRoot}/brand`);
const custom = require(`${cRoot}/custom`);
const rewrite = require('../../doraemon/middleware/rewrite');
const sitemap = require('../3party/controllers/sitemap');
const router = express.Router(); // eslint-disable-line
router.get('/', channel.switchChannel, channel.index); // 首页,频道选择页
... ... @@ -45,7 +44,5 @@ router.get('/channel/2fb054e8315300a1ae1f80c3a4fda862.html', custom.zhihui);
// 自定义频道
router.get('/channel/:id.html', custom.index);
// 站点地图
router.get('/sitemap.xml', sitemap.siteMap);
module.exports = router;
... ...
... ... @@ -17,6 +17,8 @@ const system = require(`${cRoot}/systemUpdate`);
const help = require(`${cRoot}/help`);
const sitemap = require('../3party/controllers/sitemap');
// middlware
const authGuard = require('../../doraemon/middleware/auth');
... ... @@ -43,4 +45,7 @@ router.get('/limitcodeHelp', help.limitcodeHelp);// 如何获得限购码 (APP
router.get('/limitcodeColSize', help.limitcodeColSize);// 选择限购码颜色和尺寸 (APP使用)
router.get('/limitcodeIntro', help.limitcodeIntro);// 什么是限购码 (APP使用)
// 站点地图
router.get('/sitemap.xml', sitemap.siteMap);
module.exports = router;
... ...
... ... @@ -49,6 +49,7 @@
"request": "^2.81.0",
"request-promise": "^4.2.1",
"semver": "^5.3.0",
"sitemap": "^1.12.0",
"uuid": "^3.0.1",
"xml2js": "^0.4.17",
"yoho-express-session": "^2.0.0",
... ... @@ -93,7 +94,6 @@
"stylelint-formatter-table": "^1.0.2",
"stylelint-processor-html": "^1.0.0",
"stylelint-webpack-plugin": "^0.7.0",
"sitemap": "^1.12.0",
"vue": "^2.3.2",
"vue-loader": "^12.0.3",
"vue-template-compiler": "^2.3.2",
... ...