]> git.openstreetmap.org Git - rails.git/blob - app/controllers/api/users/traces_controller.rb
Add frozen_string_literal comments to ruby files
[rails.git] / app / controllers / api / users / traces_controller.rb
1 # frozen_string_literal: true
2
3 module Api
4   module Users
5     class TracesController < ApiController
6       before_action :authorize
7       before_action :set_request_formats
8
9       authorize_resource :trace
10
11       def index
12         @traces = current_user.traces.reload
13         respond_to do |format|
14           format.xml
15           format.json
16         end
17       end
18     end
19   end
20 end