diff --git a/functions/hello-world.js b/functions/hello-world.js index 89cedc9..6223a13 100644 --- a/functions/hello-world.js +++ b/functions/hello-world.js @@ -9,5 +9,8 @@ export async function onRequest(context) { data, // arbitrary space for passing data between middlewares } = context; - return new Response('Hello, worker!') + return new Response(JSON.stringify({ + message: 'Hello, worker!', + context, + }) }