Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/request_endpoints.rb')
-rw-r--r--lib/gitlab/request_endpoints.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/request_endpoints.rb b/lib/gitlab/request_endpoints.rb
index 157c0f91e65..4efafaa0ac2 100644
--- a/lib/gitlab/request_endpoints.rb
+++ b/lib/gitlab/request_endpoints.rb
@@ -8,6 +8,7 @@ module Gitlab
# but if they weren't, the routes will be drawn and available for the rest of
# application.
API::API.compile!
+ API::API.reset_routes!
API::API.routes.select { |route| route.app.options[:for] < API::Base }
end