Skip to content

Instantly share code, notes, and snippets.

@HenriqueSilverio
Created December 21, 2022 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HenriqueSilverio/b31e2e9cb80650ba3879933b724018f1 to your computer and use it in GitHub Desktop.
Save HenriqueSilverio/b31e2e9cb80650ba3879933b724018f1 to your computer and use it in GitHub Desktop.
Server.post(
'/example',
(
request: Request<{ [key: string]: string }, unknown, { name: string, amount: number }>,
response: Response
): void => {
response.json({ message: 'request.body.name' })
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment