change req.params to an object instead of an array

apparently people find it confusing that arrays behave like objects