```js async fetch(req, env, ctx) { const payload = await req.json(); const something = await yourFunction(payload, env); return new Response(something); } ``` i.e that's fine