2 class CapabilitiesController < ApplicationController
3 skip_before_action :verify_authenticity_token
4 before_action :api_deny_access_handler
6 authorize_resource :class => false
8 around_action :api_call_handle_error, :api_call_timeout
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
16 @database_status = database_status
17 @api_status = api_status
18 @gpx_status = gpx_status