summaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb4
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