gitlab-org--gitlab-foss/lib/api/version.rb
2018-05-24 10:14:01 +02:00

12 lines
305 B
Ruby

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