diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-28 18:08:35 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-28 18:08:35 +0000 |
commit | 6315ed9630fb1c6ade3114beb762cd1568d79219 (patch) | |
tree | 2a5d31936d09c14420c8f4c8bd752e268f0eb19f /config | |
parent | fedf978f9aa1909ed7bb3fad767ad120a1c6bd7b (diff) | |
download | gitlab-ce-6315ed9630fb1c6ade3114beb762cd1568d79219.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 26 | ||||
-rw-r--r-- | config/routes/group.rb | 6 | ||||
-rw-r--r-- | config/routes/project.rb | 8 |
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 |