const express = require('express'); const router = express.Router(); const { getStockOverview, adjustStock, getInventoryHistory } = require('../controllers/inventoryController'); const { protect, authorize } = require('../middleware/authMiddleware'); router.get('/overview', protect, authorize('Admin'), getStockOverview); router.post('/adjust', protect, authorize('Admin'), adjustStock); router.get('/history', protect, authorize('Admin'), getInventoryHistory); module.exports = router;