import express from "express";
import categoryCtrl from "../controllers/category.controller.js";

const router = express.Router()

router.route('/main')
    .get(categoryCtrl.getCategory)

router.route('/sub/:sub')
    .get(categoryCtrl.getSubCategory)

export default router