text: import express from "express";
  const router = express.Router();
  import { getProductById, getProducts } from '../controllers/productController.js'
  
  //  Fetch all products
  router.route('/').get(getProducts)
  //Fetch single product
  router.route('/:id').get(getProductById)
  
  export default router;
  