you should just be able to do req.params.id (which is preferred)