Skip to content
New issue

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

Add support for parsing the body #9

Open
lindsaykwardell opened this issue May 27, 2020 · 0 comments · Fixed by #10
Open

Add support for parsing the body #9

lindsaykwardell opened this issue May 27, 2020 · 0 comments · Fixed by #10
Labels
enhancement New feature or request

Comments

@lindsaykwardell
Copy link
Owner

Add a method to handle parsing the body of a request. This can either be via middleware (like Express) or built-in, such as a check against the header content-type. I prefer the latter, so that parsing does not need to be something the developer thinks about.

router.post("/", (req, { body }) => {
  // Do something with the body
}
@lindsaykwardell lindsaykwardell linked a pull request May 27, 2020 that will close this issue
@lindsaykwardell lindsaykwardell added the enhancement New feature or request label May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant