diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-07-04 11:48:00 +0400 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-07-04 11:48:00 +0400 |
commit | fbd559d44f1fc7e37f88844a9260bf7a5e1ba822 (patch) | |
tree | 06702bbc726fdff1a6075d6395722311c9abcdb2 /lib | |
parent | 378dc55d29a97447315c6181f678cf933afbbb78 (diff) |
add API version
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/api.rb b/lib/api.rb index 6882615244b..309d254ba3d 100644 --- a/lib/api.rb +++ b/lib/api.rb @@ -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 |