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

const router = express.Router()

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

Jiwon Yoon's avatar
Jiwon Yoon committed
9
10
11
router.route('/recommend')
    .get(orderCtrl.recommendPro)

Jiwon Yoon's avatar
Jiwon Yoon committed
12
13
14
router.route('/showorder/:userId')
    .get(orderCtrl.showorder)

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

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