Merge remote-tracking branch 'upstream/pull/2280'

This commit is contained in:
Tom Hughes 2019-06-26 19:57:12 +01:00
commit a66c34991a
5 changed files with 60 additions and 1 deletions

View file

@ -0,0 +1,15 @@
module Api
class VersionsController < ApiController
authorize_resource :class => false
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