extract api url to settings module