Removed hard coded  api.url