diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2017-01-30 15:41:56 -0200 |
---|---|---|
committer | Oswaldo Ferreira <oswaldo@gitlab.com> | 2017-01-30 17:00:21 -0200 |
commit | cadef802758ce4cf0b59849ca4613545967c2da6 (patch) | |
tree | 5a5790829e6b2ffcbde9f0084ce7a76bc991e24b /lib/api/api.rb | |
parent | cc24682b58a66a217e6ffa1d56f8d45900c10d03 (diff) | |
download | gitlab-ce-cadef802758ce4cf0b59849ca4613545967c2da6.tar.gz |
Remain V3 endpoint unchanged
Diffstat (limited to 'lib/api/api.rb')
-rw-r--r-- | lib/api/api.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/api/api.rb b/lib/api/api.rb index 6cf6b501021..090109d5e6f 100644 --- a/lib/api/api.rb +++ b/lib/api/api.rb @@ -1,7 +1,12 @@ module API class API < Grape::API include APIGuard - version 'v3', using: :path + + version %w(v3 v4), using: :path + + version 'v3', using: :path do + mount ::API::V3::Projects + end before { allow_access_with_scope :api } |