Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express get query parameters

//get query¶ms in express

//etc. example.com/user/000000?sex=female

app.get('/user/:id', function(req, res) {
  const query = req.query;// query = {sex:"female"}
  const params = req.params; //params = {id:"000000"}

})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #express #query #parameters
ADD COMMENT
Topic
Name
3+3 =