Showing
1 changed file
with
12 additions
and
3 deletions
@@ -167,13 +167,22 @@ router.get('/index/shopFav', list.shopFav); | @@ -167,13 +167,22 @@ router.get('/index/shopFav', list.shopFav); | ||
167 | router.get('/index/category', list.shopCategory); | 167 | router.get('/index/category', list.shopCategory); |
168 | router.get('/index/getBrandCouponsList', list.getBrandCouponsList); | 168 | router.get('/index/getBrandCouponsList', list.getBrandCouponsList); |
169 | 169 | ||
170 | -router.get('/shop', newShop.redirect); // 老路由重定向前置处理 | ||
171 | -router.get('/shop/:domain-:shop_id.html', newShop.entry); // 新入口 | ||
172 | -router.get('/shop/:domain-(:shop_id)(/:pathParams)?', rewrite.resolvePathParams, newShop.goodsList); // 店铺商品列表 | ||
173 | router.get('/shop/goodslist', | 170 | router.get('/shop/goodslist', |
174 | cors, | 171 | cors, |
175 | rewrite.resolveShopPathParamsAjax, | 172 | rewrite.resolveShopPathParamsAjax, |
176 | newShop.goodsListAjax); // 店铺商品列表异步查询 | 173 | newShop.goodsListAjax); // 店铺商品列表异步查询 |
174 | +router.get('/shop/:shopParams.html', | ||
175 | + newShop.resolveShopParams, | ||
176 | + newShop.entry); // 新入口 | ||
177 | +router.get('/shop/:shopParams', | ||
178 | + rewrite.resolvePathParams, | ||
179 | + newShop.resolveShopParams, | ||
180 | + newShop.goodsList); // 店铺商品列表 | ||
181 | +router.get('/shop/:shopParams/:pathParams', | ||
182 | + rewrite.resolvePathParams, | ||
183 | + newShop.resolveShopParams, | ||
184 | + newShop.goodsList); // 店铺商品列表 | ||
185 | +router.get('/shop', newShop.redirect); // 老路由重定向前置处理 | ||
177 | 186 | ||
178 | router.get('/index/brand', newShop.entry); // 旧的路由,走到新的 controller | 187 | router.get('/index/brand', newShop.entry); // 旧的路由,走到新的 controller |
179 | router.get('/index/brandFav', newShop.brandFav); | 188 | router.get('/index/brandFav', newShop.brandFav); |
-
Please register or login to post a comment