From 0da313b6f0e29bd233f6174a2a67c771065eec80 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Sun, 27 Feb 2022 14:41:07 -0600 Subject: [PATCH] Fix missing syntax error --- functions/hello-world.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/functions/hello-world.js b/functions/hello-world.js index 6223a13..3d51a21 100644 --- a/functions/hello-world.js +++ b/functions/hello-world.js @@ -9,8 +9,10 @@ export async function onRequest(context) { data, // arbitrary space for passing data between middlewares } = context; - return new Response(JSON.stringify({ - message: 'Hello, worker!', - context, - }) + return new Response( + JSON.stringify({ + message: 'Hello, worker!', + context, + }) + ) }