const express = require('express');
const {
  addDelivery,
  getDeliveries,
  getDeliveryById,
  updateDelivery,
  deleteDelivery,
} = require('../controllers/deliveryController');

const router = express.Router();

router.post('/adddelivery', addDelivery);
router.get('/getdeliveries', getDeliveries);
router.get('/getdeliverybyid/:id', getDeliveryById);
router.put('/updatedelivery/:id', updateDelivery);
router.delete('/deletedelivery/:id', deleteDelivery);

module.exports = router;
