summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-23 16:29:32 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-23 16:29:32 -0800
commitb821a1bd41166c295ea1625ccf57b9bb48f61649 (patch)
tree18d4a886b199169e06077a856a44719d0cf6b84d /config/routes.rb
parentc6860a5828fe569f6a81e2c96bb7e4a32f572a29 (diff)
downloadgitlab-ce-b821a1bd41166c295ea1625ccf57b9bb48f61649.tar.gz
Fix markdown image uploader after rails update
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb
index f0979eac906..c0dbf738c1f 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -86,9 +86,9 @@ Gitlab::Application.routes.draw do
constraints: { model: /note|user|group|project/, mounted_as: /avatar|attachment/, filename: /.+/ }
# Project markdown uploads
- get ":id/:secret/:filename",
- to: "projects/uploads#show",
- constraints: { id: /[a-zA-Z.0-9_\-]+\/[a-zA-Z.0-9_\-]+/, filename: /.+/ }
+ get ":namespace_id/:id/:secret/:filename",
+ to: "projects/uploads#show",
+ constraints: { namespace_id: /[a-zA-Z.0-9_\-]+/, id: /[a-zA-Z.0-9_\-]+/, filename: /.+/ }
end
#