Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node js query get :id param

var test = function(req,res,next) {
  // do whatever logic is needed 
  res.end('Displaying information for uid ' + req.params.uid);
}
app.get('/test/:uid',test);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #node #js #query #param
ADD COMMENT
Topic
Name
3+9 =