Save endpoint in SharedPreferences