...
|
...
|
@@ -45,6 +45,7 @@ const detail = require(`${cRoot}/detail`); |
|
|
router.get(/\/product\/pro_([\d]+)_([\d]+)\/(.*).html/, detail.index); // 商品详情routers
|
|
|
router.get(/\/product\/product_([\d]+)\.json/, detail.product);
|
|
|
router.get(/\/product\/intro_([\d]+)\.json/, detail.intro);
|
|
|
router.get(/\/product\/brand_([\d]+)\.json/, detail.brand);
|
|
|
router.post(/\product\/cart.json/, detail.addToCart);
|
|
|
router.post(/\product\/favorite.json/, detail.favorite);
|
|
|
router.get(/\/product\/cart-count.json/, detail.getCartCount);
|
...
|
...
|
@@ -66,4 +67,4 @@ router.get('/search.json', search.fetchProducts); // ajax |
|
|
|
|
|
|
|
|
|
|
|
module.exports = router; |
|
|
module.exports = router; |
|
|
\ No newline at end of file |
...
|
...
|
|