...
|
...
|
@@ -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 filter = require(`${global.middleware}/filter-qs`); // 参数过滤
|
|
|
|
|
|
// 商品详情controller
|
|
|
const detail = require(`${cRoot}/detail`);
|
...
|
...
|
@@ -83,24 +83,24 @@ router.post('/detail/notify/add', auth, notify.add); // 增 |
|
|
router.post('/detail/notify/cancel', auth, notify.cancel); // 删除到货通知
|
|
|
|
|
|
// 搜索
|
|
|
router.get('/search/index', filter, search.index);
|
|
|
router.get('/search/index', 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', filter, list.index);
|
|
|
router.get('/list/index', list.index);
|
|
|
|
|
|
// 新品到着
|
|
|
router.get('/list/new', filter, list.new);
|
|
|
router.get('/list/new', list.new);
|
|
|
|
|
|
// 品牌店铺
|
|
|
router.get('/index/brand', filter, list.brand); // 品牌店铺页
|
|
|
router.get('/index/brand', list.brand); // 品牌店铺页
|
|
|
router.get('/index/about', list.brandAbout); // 品牌店铺介绍页
|
|
|
router.post('/index/isFavoriteBrand', list.isFavoriteBrand); // 判断用户是否收藏品牌
|
|
|
router.post('/index/getNodeContent', list.getNodeContent); // 品牌页水牌
|
|
|
router.post('/index/getAdnav', list.getAdnav); // 品牌页系列
|
|
|
router.get('/shoplist', filter, list.shopList); // 店铺列表页
|
|
|
router.get('/shoplist', list.shopList); // 店铺列表页
|
|
|
router.post('/shop/togglecollect', favorite.collectShop); // 店铺收藏
|
|
|
router.post('/index/isFavoriteShop', favorite.isFavShop); // 判断用户是否收藏品牌
|
|
|
router.get('/brand/couponsync', list.brandCouponSync);
|
...
|
...
|
|