Authored by xuqi

leaks codes

... ... @@ -122,4 +122,4 @@ exports.sendToFavorite = (req, res) => {
res.json({
code: '0'
});
}
};
... ...
... ... @@ -9,14 +9,17 @@
const router = require('express').Router(); // eslint-disable-line
const cRoot = './controllers';
// cart related controllers
const cartCtrl = require(`${cRoot}/cart`);
const cartCtrl = require(`${cRoot}/cart`); // 购物车
const order = require(`${cRoot}/order`); // 下单
// 购物车
router.get('/cart', cartCtrl.index);
router.get('/cart/product/check_inventory', cartCtrl.checkInventory);
router.post('/cart/product/:productId/change_num', cartCtrl.changeProductNum);
router.delete('/cart/product/:productId', cartCtrl.removeProduct);
router.post('/cart/product/:productId/send_to_favorite', cartCtrl.sendToFavorite);
// 结算
router.get('/order', order.index);
module.exports = router;
... ...