...
|
...
|
@@ -9,7 +9,7 @@ |
|
|
const router = require('express').Router(); // eslint-disable-line
|
|
|
const cRoot = './controllers';
|
|
|
const auth = require(`${global.middleware}/auth`);
|
|
|
// const filter = require(`${global.middleware}/filter-qs`); // 参数过滤
|
|
|
const gbk2utf = require(`${global.middleware}/gbk2utf`);
|
|
|
|
|
|
// 商品详情controller
|
|
|
const detail = require(`${cRoot}/detail`);
|
...
|
...
|
@@ -83,13 +83,13 @@ router.post('/detail/notify/add', auth, notify.add); // 增 |
|
|
router.post('/detail/notify/cancel', auth, notify.cancel); // 删除到货通知
|
|
|
|
|
|
// 搜索
|
|
|
router.get('/search/index', search.index);
|
|
|
router.get('/search/index', gbk2utf, search.index);
|
|
|
router.get('/search/filter/brands', search.serachFilterBrands);
|
|
|
router.get('/search/suggest', search.suggest); // 搜索提示
|
|
|
router.get('/api/suggest', search.suggest4Old);
|
|
|
|
|
|
// 商品分类列表页
|
|
|
router.get('/list/index', list.index);
|
|
|
router.get('/list/index', gbk2utf, list.index);
|
|
|
|
|
|
// 新品到着
|
|
|
router.get('/list/new', list.new);
|
...
|
...
|
|