module Users
class TracesController < ApiController
before_action :authorize
+ before_action :set_request_formats
authorize_resource :trace
def index
@traces = current_user.traces.reload
- render :content_type => "application/xml"
+ respond_to do |format|
+ format.xml
+ format.json
+ end
end
end
end