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