diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-06-15 21:47:22 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-06-15 21:47:22 +0000 |
commit | 95f7471e9c786a7cf5700f6b078ed62ca0cf264e (patch) | |
tree | 6edc607d2cfafe012a28d404cbe1a74f10efb40c /config/routes.rb | |
parent | 3ae42cb32617670cb6c99a60f5cda2cf961d110c (diff) | |
download | redmine-95f7471e9c786a7cf5700f6b078ed62ca0cf264e.tar.gz redmine-95f7471e9c786a7cf5700f6b078ed62ca0cf264e.zip |
Adds a form to manually submit an email to the mail handler.
Use GET /mail_handler?key= to get the form.
git-svn-id: http://svn.redmine.org/redmine/trunk@14314 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 30cb694ff..14321dc3e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -315,7 +315,9 @@ Rails.application.routes.draw do get 'projects/:id/search', :controller => 'search', :action => 'index' get 'search', :controller => 'search', :action => 'index' - match 'mail_handler', :controller => 'mail_handler', :action => 'index', :via => :post + + get 'mail_handler', :to => 'mail_handler#new' + post 'mail_handler', :to => 'mail_handler#index' match 'admin', :controller => 'admin', :action => 'index', :via => :get match 'admin/projects', :controller => 'admin', :action => 'projects', :via => :get |