text: const { json, send } = require('micro')
  
  const AmazonDetailsScraper = require('../../../scrapers/amazon-details')
  
  module.exports = async (req, res) => {
      try {
          const { url } = await json(req)
          const scraper = new AmazonDetailsScraper()
          const result = await scraper.run(url)
          send(res, 200, result)
      } catch (err) {
          console.error(err)
          send(res, 500)
      }
  }
  