Authored by 陈轩

rewrite url

@@ -46,6 +46,6 @@ router.get(/\/product\/product_([\d]+)\.json/, detail.product); @@ -46,6 +46,6 @@ router.get(/\/product\/product_([\d]+)\.json/, detail.product);
46 router.get(/\/product\/intro_([\d]+)\.json/, detail.intro); 46 router.get(/\/product\/intro_([\d]+)\.json/, detail.intro);
47 router.post(/\product\/cart.json/, detail.addToCart); 47 router.post(/\product\/cart.json/, detail.addToCart);
48 router.post(/\product\/favorite.json/, detail.favorite); 48 router.post(/\product\/favorite.json/, detail.favorite);
49 -router.get(/\product\/cart-count.json/, detail.getCartCount);  
50 -router.get(/\product\/search_product\.json/, detail.search); 49 +router.get(/\/product\/cart-count.json/, detail.getCartCount);
  50 +router.get(/\/product\/search_product\.json/, detail.search);
51 module.exports = router; 51 module.exports = router;