X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a61e2ed69047cc4756d4ba11617ea1b2c2ff98cb..bc49dab4a82739afdc0554ef6b23c733460cccde:/app/controllers/user_controller.rb?ds=sidebyside diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 6561d46fb..761468b98 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -1,7 +1,7 @@ class UserController < ApplicationController layout 'site' - before_filter :authorize, :only => :preferences + before_filter :authorize, :only => [:preferences, :api_details] before_filter :authorize_web, :only => [:rename, :account, :go_public] before_filter :require_user, :only => [:rename, :account, :go_public] @@ -125,5 +125,9 @@ class UserController < ApplicationController render :status => 400, :nothing => true end end + + def api_details + render :text => @user.to_xml.to_s + end end