diff options
author | Jarka Kadlecova <jarka@gitlab.com> | 2017-05-29 09:54:35 +0200 |
---|---|---|
committer | Jarka Kadlecova <jarka@gitlab.com> | 2017-06-07 07:52:41 +0200 |
commit | 2e311d9d1aac58bbd9c7d6c97c7cbcccf2715347 (patch) | |
tree | 04555ee940d5488ef6d44c5ad3afa0688cd6c1c5 /config | |
parent | 4464c22d6d23d893494682d309aec3fb31c11ae3 (diff) | |
download | gitlab-ce-2e311d9d1aac58bbd9c7d6c97c7cbcccf2715347.tar.gz |
Support uploads for newly created personal snippets12910-snippets-description
Diffstat (limited to 'config')
-rw-r--r-- | config/routes/uploads.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/routes/uploads.rb b/config/routes/uploads.rb index 76c31260394..ae8747d766d 100644 --- a/config/routes/uploads.rb +++ b/config/routes/uploads.rb @@ -9,6 +9,11 @@ scope path: :uploads do to: 'uploads#show', constraints: { model: /personal_snippet/, id: /\d+/, filename: /[^\/]+/ } + # show temporary uploads + get 'temp/:secret/:filename', + to: 'uploads#show', + constraints: { filename: /[^\/]+/ } + # Appearance get ":model/:mounted_as/:id/:filename", to: "uploads#show", |