diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-02-20 16:55:38 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-02-20 16:55:38 +0100 |
commit | 2570e4df79fa09d3c4abc1d0ec82c67a322b249e (patch) | |
tree | 2a48ff77aa9e9e6b8cdc32fb36a233c3a6dcc041 /config | |
parent | 7f1adc3d9cdc5c3f1c0fcbf6c72d89b8ee062af5 (diff) | |
download | gitlab-ce-2570e4df79fa09d3c4abc1d0ec82c67a322b249e.tar.gz |
Fix specs.
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/config/routes.rb b/config/routes.rb index b6f58acf1a6..3d826bf5599 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -75,12 +75,14 @@ Gitlab::Application.routes.draw do scope path: :uploads do # Note attachments and User/Group/Project avatars - get ":model/:mounted_as/:id/:filename", to: "uploads#show", - constraints: { model: /note|user|group|project/, mounted_as: /avatar|attachment/, filename: /.+/ } + get ":model/:mounted_as/:id/:filename", + to: "uploads#show", + constraints: { model: /note|user|group|project/, mounted_as: /avatar|attachment/, filename: /.+/ } # Project markdown uploads - get ":project_id/:secret/:filename", to: "projects/uploads#show", - constraints: { project_id: /[a-zA-Z.0-9_\-]+\/[a-zA-Z.0-9_\-]+/, filename: /.+/ } + get ":project_id/:secret/:filename", + to: "projects/uploads#show", + constraints: { project_id: /[a-zA-Z.0-9_\-]+\/[a-zA-Z.0-9_\-]+/, filename: /.+/ } end # |