Adds the downloads endpoints.