Created
December 21, 2022 02:59
-
-
Save HenriqueSilverio/b31e2e9cb80650ba3879933b724018f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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