gitlabhq/lib/api.rb
2012-07-04 00:48:00 -07:00

16 lines
267 B
Ruby

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