Created
June 1, 2020 02:14
-
-
Save parzibyte/73029e2deabd49b79bdcf5619771a669 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
app.post("/usuario", async (req, res) => { | |
// Dentro de req.body tenemos a todo el objeto. Podemos acceder a las claves del mismo como | |
// lo enviamos desde el cliente ;) | |
const nombre = req.body.nombre; | |
const web = req.body.web; | |
// Aquí hacer algo con las dos variables y responder la petición | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment