summaryrefslogtreecommitdiff
path: root/config/routes/uploads.rb
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-08-07 19:43:11 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2017-08-11 18:15:02 +0200
commit180de2d20127f79773bf661f88cd7556b191d0b9 (patch)
treee1cc4564b15b722a5fffd698d053ee3281c5e3e6 /config/routes/uploads.rb
parentb8ae15397f0f21b87ea2f91efb470e7e51ba8964 (diff)
downloadgitlab-ce-180de2d20127f79773bf661f88cd7556b191d0b9.tar.gz
Make sure uploads for personal snippets are correctly rendered
Diffstat (limited to 'config/routes/uploads.rb')
-rw-r--r--config/routes/uploads.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/routes/uploads.rb b/config/routes/uploads.rb
index e9c9aa8b2f9..d7bca8310e4 100644
--- a/config/routes/uploads.rb
+++ b/config/routes/uploads.rb
@@ -5,12 +5,12 @@ scope path: :uploads do
constraints: { model: /note|user|group|project/, mounted_as: /avatar|attachment/, filename: /[^\/]+/ }
# show uploads for models, snippets (notes) available for now
- get 'system/:model/:id/:secret/:filename',
+ get '-/system/:model/:id/:secret/:filename',
to: 'uploads#show',
constraints: { model: /personal_snippet/, id: /\d+/, filename: /[^\/]+/ }
# show temporary uploads
- get 'system/temp/:secret/:filename',
+ get '-/system/temp/:secret/:filename',
to: 'uploads#show',
constraints: { filename: /[^\/]+/ }