diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 11:27:35 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 11:27:35 +0300 |
commit | 7e9c479f7de77702622631cff2628a9c8dcbc627 (patch) | |
tree | c8f718a08e110ad7e1894510980d2155a6549197 /config/routes.rb | |
parent | e852b0ae16db4052c1c567d9efa4facc81146e88 (diff) |
Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/config/routes.rb b/config/routes.rb index 87d32e3d89a..867e5c2ec46 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -45,8 +45,7 @@ Rails.application.routes.draw do # Sign up scope path: '/users/sign_up', module: :registrations, as: :users_sign_up do - get :welcome - patch :update_registration + resource :welcome, only: [:show, :update], controller: 'welcome' resource :experience_level, only: [:show, :update] Gitlab.ee do @@ -122,7 +121,6 @@ Rails.application.routes.draw do get 'ide' => 'ide#index' get 'ide/*vueroute' => 'ide#index', format: false - get 'ide/project/:namespace/:project/merge_requests/:id' => 'ide#index', format: false, as: :ide_merge_request draw :operations draw :jira_connect @@ -175,11 +173,11 @@ Rails.application.routes.draw do resources :abuse_reports, only: [:new, :create] # JWKS (JSON Web Key Set) endpoint - # Used by third parties to verify CI_JOB_JWT, placeholder route - # in case we decide to move away from doorkeeper-openid_connect - get 'jwks' => 'doorkeeper/openid_connect/discovery#keys' + # Used by third parties to verify CI_JOB_JWT + get 'jwks' => 'jwks#index' draw :snippets + draw :profile # Product analytics collector match '/collector/i', to: ProductAnalytics::CollectorApp.new, via: :all @@ -266,7 +264,6 @@ Rails.application.routes.draw do draw :uploads draw :explore draw :admin - draw :profile draw :dashboard draw :user draw :project @@ -274,14 +271,11 @@ Rails.application.routes.draw do # Issue https://gitlab.com/gitlab-org/gitlab/-/issues/210024 scope as: 'deprecated' do draw :snippets + draw :profile end - # Serve profile routes under /-/ scope. - # To ensure an old unscoped routing is used for the UI we need to - # add prefix 'as' to the scope routing and place it below original routing. - # Issue https://gitlab.com/gitlab-org/gitlab/-/issues/210024 - scope '-', as: :scoped do - draw :profile + Gitlab.ee do + get '/sitemap' => 'sitemap#show', format: :xml end root to: "root#index" |