What's the pattern for getting data from a POST to a worker function?

Just setting up a super simple function for my nuxt app, the siganture looks like this
export function onRequestPost(context) {
// Some code
}
export function onRequestPost(context) {
// Some code
}
Looks like context.request.body is a ReadableStream - should I be looking there? I'm just hitting localhost:8788/getPresignedAssetUrl from Postman and sticking data inside a JSON body
1 Reply
chumbalaya
chumbalayaOP2y ago
awesome thanks!
Want results from more Discord servers?
Add your server