order.routes.js 329 Bytes
Newer Older
Jiwon Yoon's avatar
Jiwon Yoon committed
1
2
3
4
5
6
7
8
9
10
11
12
13
import express from "express";
import orderCtrl from '../controllers/order.controller.js';


const router = express.Router()

router.route('/addorder')
    .post(orderCtrl.addorder)
// .get()

router.route('/showorder/:userId')
    .get(orderCtrl.showorder)

14
router.param('userId', orderCtrl.orderById)
Jiwon Yoon's avatar
Jiwon Yoon committed
15
16
    
export default router