Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNihad Abbasov <narkoz.2008@gmail.com>2012-07-04 11:48:00 +0400
committerNihad Abbasov <narkoz.2008@gmail.com>2012-07-04 11:48:00 +0400
commitfbd559d44f1fc7e37f88844a9260bf7a5e1ba822 (patch)
tree06702bbc726fdff1a6075d6395722311c9abcdb2 /lib
parent378dc55d29a97447315c6181f678cf933afbbb78 (diff)
add API version
Diffstat (limited to 'lib')
-rw-r--r--lib/api.rb3
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