Skip to content

Conversation

@adamdbradley
Copy link
Contributor

Previously endpoints such as onGet() would return an object with the status, headers and body.

This update allow the return of onGet() to just be the data (which becomes the http response body).

Additionally, the passed in arguments to onGet({ response }) provides a response property, which can be used to set the status and headers.

@adamdbradley adamdbradley enabled auto-merge (squash) July 21, 2022 16:20
@adamdbradley adamdbradley disabled auto-merge July 21, 2022 16:22
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jul 21, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 046dba3
Status:⚡️  Build in progress...

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants