Take the url as a parameter for destructuring.