2018-09-29 18:34:47 -04:00
|
|
|
# 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
|
2018-05-24 03:57:54 -04:00
|
|
|
{ version: Gitlab::VERSION, revision: Gitlab.revision }
|
2016-10-12 07:32:48 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|