Created
October 4, 2018 03:05
-
-
Save ganeshkbhat/10e6ab54533db758b363f05af5355bf1 to your computer and use it in GitHub Desktop.
ExpressJS Series: Getting the req.query
This file contains hidden or 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("/someUrl/:categoryId/:someName", function(req, res) { | |
| // Request to /someUrl/12/gary?username=ganesh&password=shouldnotbehere | |
| res.send(200).send({result: 'Query params as object', queryParams: req.query}); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment