It would be easier if the params were passed into the handler as an actual argument so the context could be bound to another object.
router.add('users/:userID', function (params) { console.log(params.userID) });
It would be easier if the params were passed into the handler as an actual argument so the context could be bound to another object.