const express = require('express'); const router = express.Router(); const { getBrands, createBrand, updateBrand, deleteBrand } = require('../controllers/brandController'); const { protect, authorize } = require('../middleware/authMiddleware'); router.get('/', getBrands); router.post('/', protect, authorize('Admin'), createBrand); router.put('/:id', protect, authorize('Admin'), updateBrand); router.delete('/:id', protect, authorize('Admin'), deleteBrand); module.exports = router;