i mean if youre putting a middleware between your files, whats the point of even presigning the url

i mean if youre putting a middleware between your files, whats the point of even presigning the url ?

cant you just
if (!authed) {
   return new Response(null, { status: 401 })
} else {
   return r2.get()
}

since r2.get is also a response
Was this page helpful?