const express = require('express');
const { protect } = require('../middleware/auth');
const { addStockIn, getStockIns, addStockOut, getStockOuts } = require('../controllers/stockController');

const router = express.Router();
router.use(protect);

router.post('/in', addStockIn);
router.get('/in', getStockIns);
router.post('/out', addStockOut);
router.get('/out', getStockOuts);

module.exports = router;
