category.routes.js 281 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
이재연 committed
9
10
// router.route('/sub/:sub')
//     .get(categoryCtrl.getSubCategory)
이재연's avatar
0115    
이재연 committed
11

kusang96's avatar
kusang96 committed
12
export default router