diff --git a/worker/worker.js b/worker/worker.js index 2330c09..74f930f 100644 --- a/worker/worker.js +++ b/worker/worker.js @@ -1 +1 @@ -function s(r){let e=r.get("token"),o=r.get("zoneId"),t=r.get("records");if(!e)throw new Error('Missing parameter: "token"');if(!o)throw new Error('Missing parameter: "zoneId"');if(!t)throw new Error('Missing parameter: "records"');return{token:e,zoneId:o,records:JSON.parse(t)}}var c={async fetch(r){let e=s(new URL(r.url).searchParams)}};export{c as default}; +function n(r){let e=r.get("token"),o=r.get("zoneId"),t=r.get("records");if(!e)throw new Error('Missing parameter: "token"');if(!o)throw new Error('Missing parameter: "zoneId"');if(!t)throw new Error('Missing parameter: "records"');return{token:e,zoneId:o,records:JSON.parse(t)}}var a="https://api.cloudflare.com/client/v4/",f={async fetch(r){let e=n(new URL(r.url).searchParams),{token:o,zoneId:t,records:s}=e,c=`${a}zones/${t}/dns_records`,i={"Content-Type":"application/json",Authorization:`Bearer ${o}`};s.forEach(d=>{})}};export{f as default};