I agree with Johnny, my only addition is that you can do this for any number of levels. For instance:
app.get('/users/:id/:karma', function(req, res){
You should also check the express documentation: http://expressjs.com/api.html . The query section is likely to be very useful for you.
source share