import express  from "express";

import{
    createStockOut,
    getStockOuts,
    updateStockOut,
    deleteStockOut
} from '../controllers/stockOutController.js';

import { protect } from "../middlewares/auth.js";

const router = express.Router();

//create stock out
router.post('/', protect, createStockOut);

//get  stock out
router.get('/', protect, getStockOuts);

//update stockout 
router.put('/:id', protect, updateStockOut);

//Delete stockout
router.delete('/:id', protect, deleteStockOut);

export default  router;