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
path: root/config
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-28 21:08:35 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-28 21:08:35 +0300
commit6315ed9630fb1c6ade3114beb762cd1568d79219 (patch)
tree2a5d31936d09c14420c8f4c8bd752e268f0eb19f /config
parentfedf978f9aa1909ed7bb3fad767ad120a1c6bd7b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb26
-rw-r--r--config/routes/group.rb6
-rw-r--r--config/routes/project.rb8
3 files changed, 19 insertions, 21 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 518cf985718..be0ef0106f4 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -120,9 +120,7 @@ Rails.application.routes.draw do
draw :country
draw :country_state
draw :subscription
- end
- Gitlab.ee do
constraints(-> (*) { Gitlab::Analytics.any_features_enabled? }) do
draw :analytics
end
@@ -168,11 +166,6 @@ Rails.application.routes.draw do
end
end
- draw :api
- draw :sidekiq
- draw :help
- draw :snippets
-
# Invites
resources :invites, only: [:show], constraints: { id: /[A-Za-z0-9_-]+/ } do
member do
@@ -193,6 +186,25 @@ Rails.application.routes.draw do
# Notification settings
resources :notification_settings, only: [:create, :update]
+ resources :groups, only: [:index, :new, :create] do
+ post :preview_markdown
+ end
+
+ resources :projects, only: [:index, :new, :create]
+
+ get '/projects/:id' => 'projects#resolve'
+
+ Gitlab.ee do
+ scope '/-/push_from_secondary/:geo_node_id' do
+ draw :git_http
+ end
+ end
+
+ draw :git_http
+ draw :api
+ draw :sidekiq
+ draw :help
+ draw :snippets
draw :google_api
draw :import
draw :uploads
diff --git a/config/routes/group.rb b/config/routes/group.rb
index 24957d5ecef..8f572a685d8 100644
--- a/config/routes/group.rb
+++ b/config/routes/group.rb
@@ -1,11 +1,5 @@
# frozen_string_literal: true
-# rubocop: disable Cop/PutGroupRoutesUnderScope
-resources :groups, only: [:index, :new, :create] do
- post :preview_markdown
-end
-# rubocop: enable Cop/PutGroupRoutesUnderScope
-
constraints(::Constraints::GroupUrlConstrainer.new) do
scope(path: 'groups/*id',
controller: :groups,
diff --git a/config/routes/project.rb b/config/routes/project.rb
index df505f96c9d..e1950724386 100644
--- a/config/routes/project.rb
+++ b/config/routes/project.rb
@@ -1,13 +1,5 @@
# frozen_string_literal: true
-# rubocop: disable Cop/PutProjectRoutesUnderScope
-resources :projects, only: [:index, :new, :create]
-
-draw :git_http
-
-get '/projects/:id' => 'projects#resolve'
-# rubocop: enable Cop/PutProjectRoutesUnderScope
-
constraints(::Constraints::ProjectUrlConstrainer.new) do
# If the route has a wildcard segment, the segment has a regex constraint,
# the segment is potentially followed by _another_ wildcard segment, and