]> git.openstreetmap.org Git - rails.git/blob - app/controllers/api/capabilities_controller.rb
Add frozen_string_literal comments to ruby files
[rails.git] / app / controllers / api / capabilities_controller.rb
1 # frozen_string_literal: true
2
3 module Api
4   class CapabilitiesController < ApiController
5     skip_before_action :check_api_readable
6
7     authorize_resource :class => false
8
9     before_action :set_request_formats
10
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
16     def show
17       @database_status = database_status
18       @api_status = api_status
19       @gpx_status = gpx_status
20     end
21   end
22 end