]> git.openstreetmap.org Git - rails.git/blob - app/controllers/api/users/traces_controller.rb
Merge remote-tracking branch 'upstream/pull/5937'
[rails.git] / app / controllers / api / users / traces_controller.rb
1 module Api
2   module Users
3     class TracesController < ApiController
4       before_action :authorize
5       before_action :set_request_formats
6
7       authorize_resource :trace
8
9       def index
10         @traces = current_user.traces.reload
11         respond_to do |format|
12           format.xml
13           format.json
14         end
15       end
16     end
17   end
18 end