X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3666b674330ec8d14a224932a191d6121c5974e2..d02b8d9f1ed9b99651cdffae69b8c70e533d5517:/app/controllers/api/user_preferences_controller.rb diff --git a/app/controllers/api/user_preferences_controller.rb b/app/controllers/api/user_preferences_controller.rb index ddc5d7f43..40ccfccbb 100644 --- a/app/controllers/api/user_preferences_controller.rb +++ b/app/controllers/api/user_preferences_controller.rb @@ -7,12 +7,17 @@ module Api around_action :api_call_handle_error + before_action :set_request_formats + ## - # return all the preferences as an XML document + # return all the preferences def index @user_preferences = current_user.preferences - render :formats => [:xml] + respond_to do |format| + format.xml + format.json + end end ##