Fix missing syntax error

This commit is contained in:
Sam Carlton 2022-02-27 14:41:07 -06:00
parent 2ab70f2eb4
commit 0da313b6f0

View file

@ -9,8 +9,10 @@ export async function onRequest(context) {
data, // arbitrary space for passing data between middlewares data, // arbitrary space for passing data between middlewares
} = context; } = context;
return new Response(JSON.stringify({ return new Response(
message: 'Hello, worker!', JSON.stringify({
context, message: 'Hello, worker!',
}) context,
})
)
} }