import express from 'express'
import { createShipment, getAllShipments, getShipment, updateShipment, deleteShipment } from '../controllers/ShipmentController.js'
import protect from '../middleware/auth.js'

const router = express.Router();

router.post("/", protect, createShipment);
router.get("/", protect, getAllShipments);
router.get("/:id", protect, getShipment);
router.put("/:id", protect, updateShipment);
router.delete("/:id", protect, deleteShipment);

export default router;