Skip to content

Instantly share code, notes, and snippets.

@HenriqueSilverio
Created December 21, 2022 02:59
Show Gist options
  • 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