text: const mql = require('@microlink/mql')
  
  const got = require('got')
  const { json, send } = require('micri');
  
  module.exports = async (req, res) => {
    res.setHeader('Access-Control-Allow-Origin', '*')
    res.setHeader('content-type', 'application/json; charset=utf-8')
    
    const targetUrl = req.query.url;
    
    const { status, data, response } = await mql(targetUrl, {
      meta: true,
    })
  
    const referenceDetails = {status, data, statusCode: response.statusCode, headers: response.headers}
    
    console.log(status, data)
          
    await send(res, 200, JSON.stringify(referenceDetails, null, 2))
  
  }
  