cart.routes.js 378 Bytes
Newer Older
1
2
3
4
5
6
import express from "express";
import cartCtrl from '../controllers/cart.controller.js';


const router = express.Router()

Jiwon Yoon's avatar
qwr    
Jiwon Yoon committed
7
8
9
router.route('/addcart')
    .put(cartCtrl.addcart)
// .get()
10

Jiwon Yoon's avatar
qwr    
Jiwon Yoon committed
11
12
13
14
15
16
17
18
router.route('/showcart/:userId')
    .get(cartCtrl.showcart)
router.param('userId', cartCtrl.userById)


router.route('/deletecart')
    .post(cartCtrl.deletecart)
    
19
export default router