summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-05 15:55:49 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-05 15:55:49 +0200
commitbd3288e3207c12e90d7fed629b345cfe83018bbf (patch)
tree607b409531c97ef486138437d9481aba4b5b1628
parent478570dc323e2a92204e1598e0f9232c54661429 (diff)
downloadgitlab-ce-bd3288e3207c12e90d7fed629b345cfe83018bbf.tar.gz
api check call
-rw-r--r--lib/api/internal.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/api/internal.rb b/lib/api/internal.rb
index 576b64d04c3..0a0f55bc512 100644
--- a/lib/api/internal.rb
+++ b/lib/api/internal.rb
@@ -32,6 +32,12 @@ module Gitlab
key = Key.find(params[:key_id])
present key.user, with: Entities::User
end
+
+ get "/check" do
+ {
+ api_version: '3'
+ }
+ end
end
end
end