summaryrefslogtreecommitdiff
path: root/config/routes/uploads.rb
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-07-24 14:36:31 +0100
committerPhil Hughes <me@iamphill.com>2017-07-24 14:36:31 +0100
commit4d2be5bbec25d60a8d478bda5bc83159f2c845b1 (patch)
treec3c28a833ccd2a6628d928acee44e62ccfcc6fd8 /config/routes/uploads.rb
parent1a2d180e3dfd8bdad94766a2e8b1195288c2b146 (diff)
parentd4c4dec80dc3abd39116440a3c291c19b27258e1 (diff)
downloadgitlab-ce-4d2be5bbec25d60a8d478bda5bc83159f2c845b1.tar.gz
Merge branch 'master' into sidebar-fly-out-sub-nav
Diffstat (limited to 'config/routes/uploads.rb')
-rw-r--r--config/routes/uploads.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/routes/uploads.rb b/config/routes/uploads.rb
index a49e244af1a..e9c9aa8b2f9 100644
--- a/config/routes/uploads.rb
+++ b/config/routes/uploads.rb
@@ -1,21 +1,21 @@
scope path: :uploads do
# Note attachments and User/Group/Project avatars
- get "system/:model/:mounted_as/:id/:filename",
+ get "-/system/:model/:mounted_as/:id/:filename",
to: "uploads#show",
constraints: { model: /note|user|group|project/, mounted_as: /avatar|attachment/, filename: /[^\/]+/ }
# show uploads for models, snippets (notes) available for now
- get ':model/:id/:secret/:filename',
+ get 'system/:model/:id/:secret/:filename',
to: 'uploads#show',
constraints: { model: /personal_snippet/, id: /\d+/, filename: /[^\/]+/ }
# show temporary uploads
- get 'temp/:secret/:filename',
+ get 'system/temp/:secret/:filename',
to: 'uploads#show',
constraints: { filename: /[^\/]+/ }
# Appearance
- get "system/:model/:mounted_as/:id/:filename",
+ get "-/system/:model/:mounted_as/:id/:filename",
to: "uploads#show",
constraints: { model: /appearance/, mounted_as: /logo|header_logo/, filename: /.+/ }