debian-mirror-gitlab/lib/api/version.rb

13 lines
306 B
Ruby
Raw Normal View History

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
{ version: Gitlab::VERSION, revision: Gitlab::REVISION }
end
end
end