category.routes.js 321 Bytes
Newer Older
kusang96's avatar
kusang96 committed
1
2
3
4
5
import express from "express";
import categoryCtrl from "../controllers/category.controller.js";

const router = express.Router()

이재연's avatar
0115    
이재연 committed
6
router.route('/main')
kusang96's avatar
kusang96 committed
7
8
    .get(categoryCtrl.getCategory)

이재연's avatar
0115    
이재연 committed
9
10
11
router.route('/sub/:sub')
    .get(categoryCtrl.getSubCategory)

박상호's avatar
박상호 committed
12
// router.param('sub',categoryCtrl.getsubId)
이재연's avatar
0115    
이재연 committed
13

kusang96's avatar
kusang96 committed
14
export default router