1 # frozen_string_literal: true
 
   4   class VersionsController < ApiController
 
   5     skip_before_action :check_api_readable
 
   6     authorize_resource :class => false
 
   8     before_action :set_request_formats
 
  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.
 
  15       @versions = [Settings.api_version]