diff options
Diffstat (limited to 'config/routes/uploads.rb')
-rw-r--r-- | config/routes/uploads.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/routes/uploads.rb b/config/routes/uploads.rb index 27fdfc08adc..2b22148a134 100644 --- a/config/routes/uploads.rb +++ b/config/routes/uploads.rb @@ -1,11 +1,11 @@ scope path: :uploads do # Note attachments and User/Group/Project avatars - get "system/:model/:mounted_as/:id/:filename", + get ":model/:mounted_as/:id/:filename", to: "uploads#show", constraints: { model: /note|user|group|project/, mounted_as: /avatar|attachment/, filename: /[^\/]+/ } # Appearance - get "system/:model/:mounted_as/:id/:filename", + get ":model/:mounted_as/:id/:filename", to: "uploads#show", constraints: { model: /appearance/, mounted_as: /logo|header_logo/, filename: /.+/ } |