Changed endpoint location to heroku env var.