X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/8ad1ce97983a5d4fb86ccb8ee4cd640a76f95255..11cc4a5e601dd288d601e6e35a72d159062f18b5:/app/controllers/api/versions_controller.rb diff --git a/app/controllers/api/versions_controller.rb b/app/controllers/api/versions_controller.rb new file mode 100644 index 000000000..7de335091 --- /dev/null +++ b/app/controllers/api/versions_controller.rb @@ -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