Merge branch 'pull/3164'

This commit is contained in:
Andy Allan 2021-04-14 16:13:29 +01:00
commit 28af501924
3 changed files with 24 additions and 2 deletions

View file

@ -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
##