aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index c21d26ce5..fd832a2ad 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -61,6 +61,8 @@ Alaveteli::Application.routes.draw do
match '/request/:url_title/download' => 'request#download_entire_request', :as => :download_entire_request
####
+ resources :health_checks, :only => [:index]
+
resources :request, :only => [] do
resource :report, :only => [:new, :create]
end
@@ -72,7 +74,8 @@ Alaveteli::Application.routes.draw do
# Use /user/XXXX for things that anyone can see about that user.
# Note that /profile isn't indexed by search (see robots.txt)
match '/profile/sign_in' => 'user#signin', :as => :signin
- match '/profile/sign_up' => 'user#signup', :as => :signup
+ match '/profile/sign_up' => 'user#signup', :as => :signup, :via => :post
+ match '/profile/sign_up' => 'user#signin', :via => :get
match '/profile/sign_out' => 'user#signout', :as => :signout
match '/c/:email_token' => 'user#confirm', :as => :confirm