From 6ecd0c99dfce4b041f70a55a651f5e179e62e2d4 Mon Sep 17 00:00:00 2001 From: Toon Claes Date: Thu, 26 Jan 2017 13:29:17 +0100 Subject: API v4 no longer accepts `iid` for Issues But make API v3 working like it was. --- lib/api/api.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/api/api.rb') 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 -- cgit v1.2.1