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>2021-10-13 12:11:55 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-10-13 12:11:55 +0300
commitbc2f7ab125361e4180018b1b933f42a8709df356 (patch)
treecbdb7c268428bbf1bd1023cfd5865a530e91dc8f /config/routes
parent56a177ed56309f4742fe9f978adec394636bd7ca (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'config/routes')
-rw-r--r--config/routes/admin.rb7
-rw-r--r--config/routes/uploads.rb4
2 files changed, 9 insertions, 2 deletions
diff --git a/config/routes/admin.rb b/config/routes/admin.rb
index a17059c0265..dac1937b76a 100644
--- a/config/routes/admin.rb
+++ b/config/routes/admin.rb
@@ -61,6 +61,13 @@ namespace :admin do
end
end
+ resources :topics, only: [:index, :new, :create, :edit, :update] do
+ resource :avatar, controller: 'topics/avatars', only: [:destroy]
+ collection do
+ post :preview_markdown
+ end
+ end
+
resources :deploy_keys, only: [:index, :new, :create, :edit, :update, :destroy]
resources :hooks, only: [:index, :create, :edit, :update, :destroy] do
diff --git a/config/routes/uploads.rb b/config/routes/uploads.rb
index 71a868175a9..e2cdf8ba606 100644
--- a/config/routes/uploads.rb
+++ b/config/routes/uploads.rb
@@ -1,10 +1,10 @@
# frozen_string_literal: true
scope path: :uploads do
- # Note attachments and User/Group/Project avatars
+ # Note attachments and User/Group/Project/Topic avatars
get "-/system/:model/:mounted_as/:id/:filename",
to: "uploads#show",
- constraints: { model: /note|user|group|project/, mounted_as: /avatar|attachment/, filename: %r{[^/]+} }
+ constraints: { model: %r{note|user|group|project|projects\/topic}, mounted_as: /avatar|attachment/, filename: %r{[^/]+} }
# show uploads for models, snippets (notes) available for now
get '-/system/:model/:id/:secret/:filename',