diff options
| author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-07-17 09:16:33 +0200 |
|---|---|---|
| committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-07-18 15:38:11 +0200 |
| commit | 27a6aa4f515cb46ef3f72cad962b25ceee52986a (patch) | |
| tree | 5251ab0aedac388734a50c3a1c9c055e8cd85a8d /config/routes/uploads.rb | |
| parent | 11f9ac0a48b62cef25eedede4c1819964f08d5ce (diff) | |
| download | gitlab-ce-27a6aa4f515cb46ef3f72cad962b25ceee52986a.tar.gz | |
Move system-uploads to `-/system`
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 a49e244af1a..ed5476c8f71 100644 --- a/config/routes/uploads.rb +++ b/config/routes/uploads.rb @@ -1,6 +1,6 @@ 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: /[^\/]+/ } @@ -15,7 +15,7 @@ scope path: :uploads do 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: /.+/ } |
