import{env as e}from"cloudflare:workers";function t(){return e.MEDIA}async function n(e,{params:n}){let{key:r}=await n,i=await t().get(r.join(`/`));if(!i)return new Response(`Not found`,{status:404});let a=new Headers;return i.writeHttpMetadata(a),a.set(`etag`,i.httpEtag),new Response(i.body,{headers:a})}export{n as GET};