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