so there's no functional difference between _worker.js and all of the functions
so there's no functional difference between _worker.js and all of the functions
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?functions dir handlers. _worker.js is a primarily an escape-hatch for either people with existing Workers, or framework authors.wrangler@beta aren't great, but it's beta after all. Look at @gregbrimble's stream at https://twitch.tv/gregbrimblenpx wrangler pages dev --help should give you all the options you have available response = await fetch()
text = await response.text()
text += '<h1>Hello</h1>'
return new Response(text)functions/api/lookup.js/api/lookup