2 class VersionsController < ApiController
3 skip_before_action :check_api_readable
4 authorize_resource :class => false
6 before_action :set_request_formats
7 around_action :api_call_handle_error, :api_call_timeout
9 # Show the list of available API versions. This will replace the global
10 # unversioned capabilities call in due course.
11 # Currently we only support deploying one version at a time, but this will
12 # hopefully change soon.
14 @versions = [Settings.api_version]