gitlab-org--gitlab-foss/lib/api/version.rb

15 lines
336 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2016-10-12 07:32:48 -04:00
module API
class Version < Grape::API
before { authenticate! }
desc 'Get the version information of the GitLab instance.' do
detail 'This feature was introduced in GitLab 8.13.'
end
get '/version' do
{ version: Gitlab::VERSION, revision: Gitlab.revision }
2016-10-12 07:32:48 -04:00
end
end
end