summaryrefslogtreecommitdiff
path: root/lib/api.rb
blob: 309d254ba3d77b8a9ff30dcdaa3ac9818850961a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Dir["#{Rails.root}/lib/api/*.rb"].each {|file| require file}

module Gitlab
  class API < Grape::API
    VERSION = 'v2'
    version VERSION, :using => :path

    format :json
    error_format :json
    helpers APIHelpers

    mount Users
    mount Projects
  end
end