Skip to content

Instantly share code, notes, and snippets.

@DTrejo
Created July 8, 2011 05:58
Show Gist options
  • Save DTrejo/1071234 to your computer and use it in GitHub Desktop.
Save DTrejo/1071234 to your computer and use it in GitHub Desktop.
params
var express = require('express')
, url = require('url')
, util = require('util')
, app = express.createServer()
;
app.get('/getData', function(req, res){
console.log(util.inspect(req.query, false, 2));
res.send('Hello World, ' + req.query.start
+ '. Try putting ?start=john at the end of the url bar');
});
console.log('Listenin...');
app.listen(7180);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment