add API version
This commit is contained in:
parent
378dc55d29
commit
fbd559d44f
5 changed files with 37 additions and 34 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue