Showing
3 changed files
with
6 additions
and
4 deletions
@@ -13,7 +13,6 @@ const cate = require(cRoot + '/cate'); | @@ -13,7 +13,6 @@ const cate = require(cRoot + '/cate'); | ||
13 | const brandController = require(`${cRoot}/brand`); | 13 | const brandController = require(`${cRoot}/brand`); |
14 | const custom = require(`${cRoot}/custom`); | 14 | const custom = require(`${cRoot}/custom`); |
15 | const rewrite = require('../../doraemon/middleware/rewrite'); | 15 | const rewrite = require('../../doraemon/middleware/rewrite'); |
16 | -const sitemap = require('../3party/controllers/sitemap'); | ||
17 | const router = express.Router(); // eslint-disable-line | 16 | const router = express.Router(); // eslint-disable-line |
18 | 17 | ||
19 | router.get('/', channel.switchChannel, channel.index); // 首页,频道选择页 | 18 | router.get('/', channel.switchChannel, channel.index); // 首页,频道选择页 |
@@ -45,7 +44,5 @@ router.get('/channel/2fb054e8315300a1ae1f80c3a4fda862.html', custom.zhihui); | @@ -45,7 +44,5 @@ router.get('/channel/2fb054e8315300a1ae1f80c3a4fda862.html', custom.zhihui); | ||
45 | // 自定义频道 | 44 | // 自定义频道 |
46 | router.get('/channel/:id.html', custom.index); | 45 | router.get('/channel/:id.html', custom.index); |
47 | 46 | ||
48 | -// 站点地图 | ||
49 | -router.get('/sitemap.xml', sitemap.siteMap); | ||
50 | 47 | ||
51 | module.exports = router; | 48 | module.exports = router; |
@@ -17,6 +17,8 @@ const system = require(`${cRoot}/systemUpdate`); | @@ -17,6 +17,8 @@ const system = require(`${cRoot}/systemUpdate`); | ||
17 | 17 | ||
18 | const help = require(`${cRoot}/help`); | 18 | const help = require(`${cRoot}/help`); |
19 | 19 | ||
20 | +const sitemap = require('../3party/controllers/sitemap'); | ||
21 | + | ||
20 | // middlware | 22 | // middlware |
21 | 23 | ||
22 | const authGuard = require('../../doraemon/middleware/auth'); | 24 | const authGuard = require('../../doraemon/middleware/auth'); |
@@ -43,4 +45,7 @@ router.get('/limitcodeHelp', help.limitcodeHelp);// 如何获得限购码 (APP | @@ -43,4 +45,7 @@ router.get('/limitcodeHelp', help.limitcodeHelp);// 如何获得限购码 (APP | ||
43 | router.get('/limitcodeColSize', help.limitcodeColSize);// 选择限购码颜色和尺寸 (APP使用) | 45 | router.get('/limitcodeColSize', help.limitcodeColSize);// 选择限购码颜色和尺寸 (APP使用) |
44 | router.get('/limitcodeIntro', help.limitcodeIntro);// 什么是限购码 (APP使用) | 46 | router.get('/limitcodeIntro', help.limitcodeIntro);// 什么是限购码 (APP使用) |
45 | 47 | ||
48 | +// 站点地图 | ||
49 | +router.get('/sitemap.xml', sitemap.siteMap); | ||
50 | + | ||
46 | module.exports = router; | 51 | module.exports = router; |
@@ -49,6 +49,7 @@ | @@ -49,6 +49,7 @@ | ||
49 | "request": "^2.81.0", | 49 | "request": "^2.81.0", |
50 | "request-promise": "^4.2.1", | 50 | "request-promise": "^4.2.1", |
51 | "semver": "^5.3.0", | 51 | "semver": "^5.3.0", |
52 | + "sitemap": "^1.12.0", | ||
52 | "uuid": "^3.0.1", | 53 | "uuid": "^3.0.1", |
53 | "xml2js": "^0.4.17", | 54 | "xml2js": "^0.4.17", |
54 | "yoho-express-session": "^2.0.0", | 55 | "yoho-express-session": "^2.0.0", |
@@ -93,7 +94,6 @@ | @@ -93,7 +94,6 @@ | ||
93 | "stylelint-formatter-table": "^1.0.2", | 94 | "stylelint-formatter-table": "^1.0.2", |
94 | "stylelint-processor-html": "^1.0.0", | 95 | "stylelint-processor-html": "^1.0.0", |
95 | "stylelint-webpack-plugin": "^0.7.0", | 96 | "stylelint-webpack-plugin": "^0.7.0", |
96 | - "sitemap": "^1.12.0", | ||
97 | "vue": "^2.3.2", | 97 | "vue": "^2.3.2", |
98 | "vue-loader": "^12.0.3", | 98 | "vue-loader": "^12.0.3", |
99 | "vue-template-compiler": "^2.3.2", | 99 | "vue-template-compiler": "^2.3.2", |
-
Please register or login to post a comment