Adds the preferences endpoint