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


const router = express.Router()

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

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

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

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