1 # frozen_string_literal: true
4 class CapabilitiesController < ApiController
5 skip_before_action :check_api_readable
7 authorize_resource :class => false
9 before_action :set_request_formats
11 # External apps that use the api are able to query the api to find out some
12 # parameters of the API. It currently returns:
13 # * minimum and maximum API versions that can be used.
14 # * maximum area that can be requested in a bbox request in square degrees
15 # * number of tracepoints that are returned in each tracepoints page
17 @database_status = database_status
18 @api_status = api_status
19 @gpx_status = gpx_status