add API version

This commit is contained in:
Nihad Abbasov 2012-07-04 00:48:00 -07:00
parent 378dc55d29
commit fbd559d44f
5 changed files with 37 additions and 34 deletions

View file

@ -2,6 +2,9 @@ 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