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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-07-23 18:09:28 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-07-23 18:09:28 +0300
commit14fb5a922285d71fea67de59164ee4bb81ee3486 (patch)
treed3f585c54feb676aec2f14cc85fe32d615fd7fc0 /config/routes.rb
parentd9b0b3243e3cd71a08ff5d4035b7882cc7a5a35f (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/config/routes.rb b/config/routes.rb
index dd84bc859bb..fa84b5e50c7 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -178,6 +178,8 @@ Rails.application.routes.draw do
# in case we decide to move away from doorkeeper-openid_connect
get 'jwks' => 'doorkeeper/openid_connect/discovery#keys'
+ draw :snippets
+
# Product analytics collector
match '/collector/i', to: ProductAnalytics::CollectorApp.new, via: :all
end
@@ -258,7 +260,6 @@ Rails.application.routes.draw do
draw :api
draw :sidekiq
draw :help
- draw :snippets
draw :google_api
draw :import
draw :uploads
@@ -269,11 +270,8 @@ Rails.application.routes.draw do
draw :user
draw :project
- # Serve snippet routes under /-/snippets.
- # 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
+ scope as: 'deprecated' do
draw :snippets
end