text: const express = require('express');
  const reviewController = require('../../controllers/admin/review.controller');
  const authController = require('../../controllers/admin/auth-controller');
  
  
  //Create router for review
  const router = express.Router({ mergeParams: true });
  
  //Routes of reviews
  router
      .route('/')
      .post(
          reviewController.setProductUserIds,
          reviewController.createReview,
      );
  
  router.route('/all').get(reviewController.getAllReviews);
  router.route('/:idproduct').get(reviewController.getAllReviewsIdProduct)
  router
      .route('/:id')
      .get(reviewController.getReview)
      .patch(
          reviewController.updateReview
      )
      .delete(
          reviewController.deleteReview
      );
  
  //export for using in app
  module.exports = router;
  