module Api
class UsersController < ApiController
- layout "site", :except => [:api_details]
-
before_action :disable_terms_redirect, :only => [:details]
before_action :authorize, :only => [:details, :gpx_files]
def show
if @user.visible?
- render :action => :show, :content_type => "text/xml"
+ render :content_type => "text/xml"
else
head :gone
end
@users = User.visible.find(ids)
- render :action => :index, :content_type => "text/xml"
+ render :content_type => "text/xml"
end
def gpx_files