We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would be nice I think if h3 had a helper function like getPayload
getPayload
Would work just like getQuery and readBody but would work for both depending on the request method and also include the route params
getQuery
readBody
Here is a proof of concept for getPayload as a utility function: https://stackblitz.com/edit/github-dbe8gu?file=server%2Futils%2Findex.ts
(uses Nuxt getRouterParams... not sure what that would be in h3)
Would also be great to have a getValidatedPayload version that works like the query and body counterparts.
getValidatedPayload
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the feature
Would be nice I think if h3 had a helper function like
getPayload
Would work just like
getQuery
andreadBody
but would work for both depending on the request method and also include the route paramsHere is a proof of concept for
getPayload
as a utility function:https://stackblitz.com/edit/github-dbe8gu?file=server%2Futils%2Findex.ts
(uses Nuxt getRouterParams... not sure what that would be in h3)
Would also be great to have a
getValidatedPayload
version that works like the query and body counterparts.Additional information
The text was updated successfully, but these errors were encountered: