diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-02-27 11:26:47 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-02-28 17:02:57 +0100 |
commit | ff696856079c984332de167219f2768415e6730f (patch) | |
tree | fd379f8d70eac4b58815f0dddc5379aeac2ba5de /config/routes.rb | |
parent | 039fd3c5620823d2eab340e6c033954cdbd982eb (diff) | |
download | gitlab-ce-ff696856079c984332de167219f2768415e6730f.tar.gz |
Add comment about note attachment redirect.
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index e152b27a262..63299176932 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -97,6 +97,7 @@ Gitlab::Application.routes.draw do constraints: { namespace_id: /[a-zA-Z.0-9_\-]+/, project_id: /[a-zA-Z.0-9_\-]+/, filename: /.+/ } end + # Redirect old note attachments path to new uploads path. get "files/note/:id/:filename", to: redirect("uploads/note/attachment/%{id}/%{filename}"), constraints: { filename: /.+/ } |