Skip to content

Instantly share code, notes, and snippets.

@caseycesari
Created September 28, 2012 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caseycesari/3802249 to your computer and use it in GitHub Desktop.
Save caseycesari/3802249 to your computer and use it in GitHub Desktop.
app.get('/home/:foo', function(req, res){
res.redirect('/state/' + req.params.foo);
});
app.get('/state/:name', function(req, res){
res.send(req.params.name);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment