text: const router = require("express").Router();
  const closetController = require("../../controllers/closetController");
  
  // Matches with "/api/closet"
  router.route("/")
    .post(closetController.create);
  
  // Matches with "/api/closet/:id"
  router
  .route("/:id")
  .get(closetController.findAll)
  .put(closetController.update)
  .delete(closetController.remove);
  
  module.exports = router;
  