]> git.openstreetmap.org Git - rails.git/blob - app/controllers/api/capabilities_controller.rb
Merge remote-tracking branch 'upstream/pull/2167'
[rails.git] / app / controllers / api / capabilities_controller.rb
1 module Api
2   class CapabilitiesController < ApplicationController
3     skip_before_action :verify_authenticity_token
4     before_action :api_deny_access_handler
5
6     authorize_resource :class => false
7
8     around_action :api_call_handle_error, :api_call_timeout
9
10     # External apps that use the api are able to query the api to find out some
11     # parameters of the API. It currently returns:
12     # * minimum and maximum API versions that can be used.
13     # * maximum area that can be requested in a bbox request in square degrees
14     # * number of tracepoints that are returned in each tracepoints page
15     def show
16       @database_status = database_status
17       @api_status = api_status
18       @gpx_status = gpx_status
19     end
20   end
21 end