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,11 @@
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;