Merge remote-tracking branch 'upstream/pull/2280'
This commit is contained in:
commit
a66c34991a
5 changed files with 60 additions and 1 deletions
15
app/controllers/api/versions_controller.rb
Normal file
15
app/controllers/api/versions_controller.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue