const express = require('express');
const router = express.Router();
const { protect } = require('../middleware/auth');
const {
  addwarehouse,
  getwarehouse,
  getwarehousebyid,
  updatewarehouse,
  deletewarehouse,
} = require('../controllers/warehouseController');

router.use(protect);

router.post('/addwarehouse', addwarehouse);
router.get('/getwarehouse', getwarehouse);
router.get('/getwarehousebyid/:id', getwarehousebyid);
router.put('/updatewarehouse/:id', updatewarehouse);
router.delete('/deletewarehouse/:id', deletewarehouse);

module.exports = router;
