diff options
author | Jarka Kadlecova <jarka@gitlab.com> | 2017-05-29 10:54:35 +0300 |
---|---|---|
committer | Jarka Kadlecova <jarka@gitlab.com> | 2017-06-07 08:52:41 +0300 |
commit | 2e311d9d1aac58bbd9c7d6c97c7cbcccf2715347 (patch) | |
tree | 04555ee940d5488ef6d44c5ad3afa0688cd6c1c5 /config/routes | |
parent | 4464c22d6d23d893494682d309aec3fb31c11ae3 (diff) |
Support uploads for newly created personal snippets
Diffstat (limited to 'config/routes')
-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", |