...
|
...
|
@@ -31,7 +31,7 @@ app.set('views', path.join(__dirname, 'apps/views')); |
|
|
app.set('view engine', 'hbs');
|
|
|
|
|
|
// 设置public文件夹为存放静态文件的目录
|
|
|
app.use('/dist', express.static(path.join(__dirname, './public/dist/')));
|
|
|
app.use('/goods-xml', express.static(path.join(__dirname, './public/dist/goods-xml/')));
|
|
|
|
|
|
// 添加请求上下文
|
|
|
app.use(global.yoho.httpCtx());
|
...
|
...
|
@@ -40,7 +40,7 @@ app.get('/goods-:start.xml', cseo.index); |
|
|
app.get('/auto-goods.html', cseo.autoGoodsXml);
|
|
|
app.get('/seo/setTask', cseo.setTask);
|
|
|
app.get('/seo/delTask', cseo.delTask);
|
|
|
app.get('/seo/sitemap.xml', cseo.siteMapXml);
|
|
|
app.get('/goods/sitemap.xml', cseo.siteMapXml);
|
|
|
app.get('/demo.xml', cseo.demoXml);
|
|
|
app.get('/demo.xsd', cseo.demoXsd);
|
|
|
|
...
|
...
|
|