X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/6db326aa1f084a062a3b658876bc01bf650f5702..4cf3c3b6ed7cc6ab0728b320afde5854489629fb:/app/controllers/api/users_controller.rb diff --git a/app/controllers/api/users_controller.rb b/app/controllers/api/users_controller.rb index 3180cabcc..d97e8774e 100644 --- a/app/controllers/api/users_controller.rb +++ b/app/controllers/api/users_controller.rb @@ -1,7 +1,5 @@ module Api class UsersController < ApiController - layout "site", :except => [:api_details] - before_action :disable_terms_redirect, :only => [:details] before_action :authorize, :only => [:details, :gpx_files] @@ -13,7 +11,7 @@ module Api def show if @user.visible? - render :action => :show, :content_type => "text/xml" + render :content_type => "text/xml" else head :gone end @@ -33,15 +31,12 @@ module Api @users = User.visible.find(ids) - render :action => :index, :content_type => "text/xml" + render :content_type => "text/xml" end def gpx_files - doc = OSM::API.new.get_xml_doc - current_user.traces.reload.each do |trace| - doc.root << trace.to_xml_node - end - render :xml => doc.to_s + @traces = current_user.traces.reload + render :content_type => "application/xml" end private