order.routes.js 391 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)

이재연's avatar
aaaa    
이재연 committed
14
15
16
router.route('/recommend')
    .post(orderCtrl.recommendPro)

17
router.param('userId', orderCtrl.orderById)
Jiwon Yoon's avatar
Jiwon Yoon committed
18
19
    
export default router