Created
July 8, 2011 05:58
-
-
Save DTrejo/1071234 to your computer and use it in GitHub Desktop.
params
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
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