summaryrefslogtreecommitdiff
path: root/lib/api/api.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/api.rb')
-rw-r--r--lib/api/api.rb8
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