- match '/' => 'site#index'
- match '/edit' => 'site#edit'
- match '/copyright' => 'site#copyright'
- match '/copyright/:copyright_locale' => 'site#copyright'
- match '/history' => 'changeset#list'
- match '/history/feed' => 'changeset#feed', :format => :atom
- match '/export' => 'site#export'
- match '/login' => 'user#login'
- match '/logout' => 'user#logout'
- match '/offline' => 'site#offline'
- match '/key' => 'site#key'
- match '/user/new' => 'user#new'
- match '/user/terms' => 'user#terms'
- match '/user/save' => 'user#save'
- match '/user/:display_name/confirm/resend' => 'user#confirm_resend'
- match '/user/:display_name/confirm' => 'user#confirm'
- match '/user/confirm' => 'user#confirm'
- match '/user/confirm-email' => 'user#confirm_email'
- match '/user/go_public' => 'user#go_public'
- match '/user/reset-password' => 'user#reset_password'
- match '/user/forgot-password' => 'user#lost_password'
- match '/user/suspended' => 'user#suspended'
-
- match '/index.html' => 'site#index'
- match '/edit.html' => 'site#edit'
- match '/export.html' => 'site#export'
- match '/login.html' => 'user#login'
- match '/logout.html' => 'user#logout'
- match '/create-account.html' => 'user#new'
- match '/forgot-password.html' => 'user#lost_password'
+ root :to => 'site#index', :via => [:get, :post]
+ match '/edit' => 'site#edit', :via => :get
+ match '/copyright/:copyright_locale' => 'site#copyright', :via => :get
+ match '/copyright' => 'site#copyright', :via => :get
+ match '/history' => 'changeset#list', :via => :get
+ match '/history/feed' => 'changeset#feed', :via => :get, :format => :atom
+ match '/export' => 'site#index', :export => true, :via => :get
+ match '/login' => 'user#login', :via => [:get, :post]
+ match '/logout' => 'user#logout', :via => [:get, :post]
+ match '/offline' => 'site#offline', :via => :get
+ 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/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]
+ match '/user/confirm' => 'user#confirm', :via => [:get, :post]
+ match '/user/confirm-email' => 'user#confirm_email', :via => [:get, :post]
+ match '/user/go_public' => 'user#go_public', :via => :post
+ match '/user/reset-password' => 'user#reset_password', :via => [:get, :post]
+ match '/user/forgot-password' => 'user#lost_password', :via => [:get, :post]
+ match '/user/suspended' => 'user#suspended', :via => :get
+
+ match '/index.html' => 'site#index', :via => :get
+ match '/create-account.html' => 'user#new', :via => :get
+ match '/forgot-password.html' => 'user#lost_password', :via => :get