how to pass query parameter to handler in require() node code example
Example: get query parameters in node.js
var express = require('express');
var app = express();
app.get('/', function(req, res){
res.send('id: ' + req.query.id);
});
app.listen(3000);