blob: 2dcce703b2aae9c54748ec6cdb83d112e6a5f576 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# 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
|