text: //**************** imports ****************//
  const express = require('express');
  const {
     newOrder,
     getSingleOrder,
     myOrders,
     allOrders,
     updateOrder,
     deleteOrder
  } = require('../controllers/orderController');
  const { isAuthenticatedUser, authorizeRoles} = require('../middlewares/auth');
  
  //**************** variables ****************//
  const router = express.Router();
  
  //**************** order routes ****************//
  router.route('/order/new').post(isAuthenticatedUser, newOrder);
  router.route('/order/:id').get(isAuthenticatedUser, getSingleOrder);
  router.route('/orders/me').get(isAuthenticatedUser, myOrders);
  router.route('/admin/orders/').get(isAuthenticatedUser, authorizeRoles('admin'), allOrders);
  router.route('/admin/order/:id').put(isAuthenticatedUser, authorizeRoles('admin'), updateOrder);
  router.route('/admin/order/:id').delete(isAuthenticatedUser, authorizeRoles('admin'), deleteOrder);
  
  module.exports = router;