]> git.openstreetmap.org Git - rails.git/blobdiff - config/routes.rb
Refactor user creation actions
[rails.git] / config / routes.rb
index 6896fcc01f7bc39d3cf51094d61d77f1b2124d5c..bc473a4b0d74d86724add2413aef7d6f05addc63 100644 (file)
@@ -134,7 +134,8 @@ OpenStreetMap::Application.routes.draw do
   match '/key' => 'site#key', :via => :get
   match '/id' => 'site#id', :via => :get
   match '/user/new' => 'user#new', :via => :get
-  match '/user/terms' => 'user#terms', :via => [:get, :post]
+  match '/user/new' => 'user#create', :via => :post
+  match '/user/terms' => 'user#terms', :via => :get
   match '/user/save' => 'user#save', :via => :post
   match '/user/:display_name/confirm/resend' => 'user#confirm_resend', :via => :get
   match '/user/:display_name/confirm' => 'user#confirm', :via => [:get, :post]