CloudFlare Worker Leia Params URL

async function handleRequest(request) {
  const params = {}
  const url = new URL(request.url)
  const queryString = url.search.slice(1).split('&')

  queryString.forEach(item => {
    const kv = item.split('=')
    if (kv[0]) params[kv[0]] = kv[1] || true
  })

  console.log(JSON.stringify(params))
  return new Response(JSON.stringify(params))
Aryqs Ipsum