added a way to pass params to the endpoints
fixed /media/recent endpoint