diff options
author | Toon Claes <toon@gitlab.com> | 2017-01-26 13:29:17 +0100 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2017-01-26 13:29:17 +0100 |
commit | 6ecd0c99dfce4b041f70a55a651f5e179e62e2d4 (patch) | |
tree | 735435b9f1a0110b31be29acd1d69d28f916b82e /lib/api/api.rb | |
parent | 44d71f1bc907e619821546f2709f8257d49ed7a1 (diff) | |
download | gitlab-ce-tc-v4-api-namespace.tar.gz |
API v4 no longer accepts `iid` for Issuestc-v4-api-namespace
But make API v3 working like it was.
Diffstat (limited to 'lib/api/api.rb')
-rw-r--r-- | lib/api/api.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/api/api.rb b/lib/api/api.rb index 4bedb21cb9d..782e2024469 100644 --- a/lib/api/api.rb +++ b/lib/api/api.rb @@ -1,7 +1,5 @@ module API class API < Grape::API - version %w(v3 v4), using: :path - include APIGuard before { allow_access_with_scope :api } @@ -35,6 +33,12 @@ module API helpers ::SentryHelper helpers ::API::Helpers + version 'v3', using: :path do + mount ::API::V3::Issues + end + + version %w(v3 v4), using: :path + # Keep in alphabetical order mount ::API::AccessRequests mount ::API::AwardEmoji |