]> git.openstreetmap.org Git - rails.git/blob - app/controllers/api/versions_controller.rb
Merge pull request #6394 from openstreetmap/dependabot/github_actions/ruby/setup...
[rails.git] / app / controllers / api / versions_controller.rb
1 # frozen_string_literal: true
2
3 module Api
4   class VersionsController < ApiController
5     skip_before_action :check_api_readable
6     authorize_resource :class => false
7
8     before_action :set_request_formats
9
10     # Show the list of available API versions. This will replace the global
11     # unversioned capabilities call in due course.
12     # Currently we only support deploying one version at a time, but this will
13     # hopefully change soon.
14     def show
15       @versions = [Settings.api_version]
16     end
17   end
18 end