Skip to content

Instantly share code, notes, and snippets.

@ovaillancourt
Created June 6, 2012 20:39
Show Gist options
  • Save ovaillancourt/2884612 to your computer and use it in GitHub Desktop.
Save ovaillancourt/2884612 to your computer and use it in GitHub Desktop.
var express = require('express');
var app = express.createServer();
app.use(app.router);
app.get('/:john*', function(req,res, next){
res.send('It worked \n req.param(\'john\') = ' + req.param('john'));
});
app.listen(3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment