summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2016-01-14 14:38:55 +0000
committerDouwe Maan <douwe@gitlab.com>2016-01-14 14:38:55 +0000
commitb6ae2def2cb2b1da3ddcb3ceee556628a1147cc4 (patch)
tree8e3511314feb1261bd28fc84a3710e5501238d72 /config/routes.rb
parent33ccee239ebcac7785c1ad466c1624a43af99c90 (diff)
parentbe08490863b76026b8f3ffbc422cb7f5d8b4a6a4 (diff)
downloadgitlab-ce-b6ae2def2cb2b1da3ddcb3ceee556628a1147cc4.tar.gz
Merge branch 'unsubscribe-from-thread-from-email-footer' into 'master'
Unsubscribe from thread through link in email footer Closes #3437 ![Screenshot_from_2015-12-11_15-35-06](/uploads/cfb3d8737d4757f527995411f103d0ce/Screenshot_from_2015-12-11_15-35-06.png) ![Screenshot_from_2015-12-11_15-35-56](/uploads/9b7121be7ce4b05e5995ca6d38c5bea4/Screenshot_from_2015-12-11_15-35-56.png) See merge request !2068
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 0a29782f55b..b6cdac63e81 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -88,6 +88,12 @@ Rails.application.routes.draw do
end
end
+ resources :sent_notifications, only: [], constraints: { id: /\h{32}/ } do
+ member do
+ get :unsubscribe
+ end
+ end
+
# Spam reports
resources :abuse_reports, only: [:new, :create]