product.routes.js 307 Bytes
Newer Older
Jiwon Yoon's avatar
Jiwon Yoon committed
1
2
3
import express from "express";
import productCtrl from '../controllers/product.controller.js';

kusang96's avatar
kusang96 committed
4

Jiwon Yoon's avatar
Jiwon Yoon committed
5
6
7
const router = express.Router()

router.route('/regist')
kusang96's avatar
dd    
kusang96 committed
8
    .post(productCtrl.imageUpload, productCtrl.regist)
9
    
kusang96's avatar
kusang96 committed
10
11
// router.route('/productone')
//     .get(productCtrl.getProduct)
Jiwon Yoon's avatar
Jiwon Yoon committed
12
    
Jiwon Yoon's avatar
Jiwon Yoon committed
13
export default router