import express from 'express';
import { createWarehouse, getAllWarehouses } from '../controllers/warehouseController.js';
import { authenticate } from '../middleware/auth.js';

const router = express.Router();

router.post('/create', authenticate, createWarehouse);
router.get('/all', authenticate, getAllWarehouses);

export default router;
