2018-12-05 23:21:45 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-11-03 12:29:30 +05:30
|
|
|
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
|
2018-10-15 14:42:47 +05:30
|
|
|
{ version: Gitlab::VERSION, revision: Gitlab.revision }
|
2016-11-03 12:29:30 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|