debian-mirror-gitlab/lib/api/version.rb
2018-12-05 23:21:45 +05:30

14 lines
336 B
Ruby

# frozen_string_literal: true
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 }
end
end
end