mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add context to cf function
This commit is contained in:
parent
10e1679529
commit
2ab70f2eb4
1 changed files with 4 additions and 1 deletions
|
|
@ -9,5 +9,8 @@ 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('Hello, worker!')
|
return new Response(JSON.stringify({
|
||||||
|
message: 'Hello, worker!',
|
||||||
|
context,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue