text: import express from "express";
  import requireAuth from "../middlewares/requireAuth";
  import {
    getAllRents,
    getRentById,
    storeRent,
    getRentByUser,
    returnRent
  } from "../controllers/RentalController";
  
  export const rentalRouter = express.Router();
  
  rentalRouter
    .route("/rent")
    .get(requireAuth, getAllRents)
    .post(requireAuth, storeRent);
  
  rentalRouter.post("/rent/return", requireAuth, returnRent);
  
  rentalRouter.get("/rent/:id", requireAuth, getRentById);
  rentalRouter.get("/rent/user/:id", requireAuth, getRentByUser);
  