Removed hard-coded url to api