For a little behind-the-scenes, what we’re doing at the moment is just compiling the functions direc
For a little behind-the-scenes, what we’re doing at the moment is just compiling the functions directory into an _worker.js.
functions gives you simple routing behavior and an arguably easier API, but they boil down to the same thing at the moment.functions/api/lookup.js I could request it from /api/lookup, right?functionsfunctions/api/lookup.js/api/lookupresponse = await fetch()
text = await response.text()
text += '<h1>Hello</h1>'
return new Response(text)