Initial commit

This commit is contained in:
2026-09-16 17:36:46 +05:30
commit c9f429d123
117 changed files with 14145 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
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;