openstreetmap-website/app/controllers/api/versions_controller.rb
2023-08-18 19:26:53 +01:00

16 lines
501 B
Ruby

module Api
class VersionsController < ApiController
authorize_resource :class => false
before_action :set_request_formats
around_action :api_call_handle_error, :api_call_timeout
# Show the list of available API versions. This will replace the global
# unversioned capabilities call in due course.
# Currently we only support deploying one version at a time, but this will
# hopefully change soon.
def show
@versions = [Settings.api_version]
end
end
end