category.routes.js 276 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)

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

kusang96's avatar
kusang96 committed
12
export default router