var express = require("express");
var deliveryController = require("../controllers/deliveryController");
var requireLogin = require("../middleware/authMiddleware");
var router = express.Router();

router.post("/", requireLogin, deliveryController.createDelivery);
router.get("/", requireLogin, deliveryController.getDeliveries);
router.put("/:id", requireLogin, deliveryController.updateDelivery);
router.delete("/:id", requireLogin, deliveryController.deleteDelivery);

module.exports = router;
