diff options
| author | Marin Jankovski <maxlazio@gmail.com> | 2017-02-06 15:28:08 +0100 |
|---|---|---|
| committer | Marin Jankovski <maxlazio@gmail.com> | 2017-02-06 15:28:08 +0100 |
| commit | a8b4c75f21c25b1ce6cbbb904df077522007fc20 (patch) | |
| tree | 5438ca40d9f83bf29c4541b5c1de33b6c69c8f57 /lib/api/api.rb | |
| parent | 3f01f05bde8e55b533bc0468ed62485141e827e8 (diff) | |
| parent | 178626ed6114055d756c7d4a13d5f5eec8fa2a85 (diff) | |
| download | gitlab-ce-a8b4c75f21c25b1ce6cbbb904df077522007fc20.tar.gz | |
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
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 } |
