config/routes.rb in iugusdk-1.0.0.alpha.1 vs config/routes.rb in iugusdk-1.0.0.alpha.2
- old
+ new
@@ -4,14 +4,15 @@
end
constraints(IuguSDK::RootTenancyUrl) do
get "settings" => "iugu/settings#index", :as => "settings"
- get "settings/account" => "iugu/account#index", :as => "account_settings"
+ get "settings/accounts" => "iugu/account#index", :as => "account_settings"
get "settings/account/(:id)" => "iugu/account#view", :as => "account_view"
delete "settings/account/(:id)" => "iugu/account#destroy", :as => "account_destroy"
delete "settings/account/(:id)/cancel" => "iugu/account#cancel_destruction", :as => "account_cancel_destruction"
+ post "settings/account/(:account_id)/generate_new_token" => "iugu/account#generate_new_token", :as => "account_generate_new_token"
put "settings/account/(:id)" => "iugu/account#update", :as => "account_update"
post "settings/account" => "iugu/account#create", :as => "account_create"
get "settings/account/:account_id/users" => "iugu/account_users#index", :as => "account_users_index"
get "settings/account/:account_id/user/:user_id" => "iugu/account_users#view", :as => "account_users_view"
@@ -22,10 +23,11 @@
post '/settings/account/:account_id/domain' => 'iugu/account_domains#create', :as => 'create_domain'
delete "settings/account/:account_id/domain/:domain_id" => "iugu/account_domains#destroy", :as => "account_domains_destroy"
get "settings/account/:account_id/domain/:domain_id" => "iugu/account_domains#instructions", :as => "account_domains_instructions"
post '/settings/account/:account_id/domain/:domain_id' => 'iugu/account_domains#verify', :as => 'verify_domain'
post '/settings/account/:account_id/domain/:domain_id/primary' => 'iugu/account_domains#primary', :as => 'primary_domain'
+ put '/settings/account/:account_id/subdomain' => 'iugu/account_domains#update_subdomain', :as => 'update_subdomain'
get "select_account/:id" => "iugu/account#select", :as => "account_select"
get "settings/profile" => "iugu/profile#index", :as => "profile_settings"
get "settings/profile/destroy" => "iugu/profile#destroy", :as => "profile_destroy"
get "settings/profile/cancel_destruction" => "iugu/profile#cancel_destruction", :as => "profile_cancel_destruction"
@@ -50,12 +52,15 @@
get 'login' => 'iugu/sessions#new', :as => 'new_user_session'
post 'login' => 'iugu/sessions#create', :as => 'user_session'
delete 'logout' => 'iugu/sessions#destroy', :as => 'destroy_user_session'
# Registration Stuff
- get 'signup' => 'iugu/registrations#new', :as => 'new_user_registration'
- post 'signup' => 'iugu/registrations#create', :as => 'user_registration'
- get 'cancel_signup' => 'iugu/registrations#cancel', :as => 'cancel_user_registration'
+ unless IuguSDK::enable_social_only
+ get 'signup' => 'iugu/registrations#new', :as => 'new_user_registration'
+ post 'signup' => 'iugu/registrations#create', :as => 'user_registration'
+ get 'cancel_signup' => 'iugu/registrations#cancel', :as => 'cancel_user_registration'
+ end
+ post 'try_first' => 'iugu/registrations#try_first', :as => 'try_first'
# Confirmation Stuff
post 'confirmation' => 'iugu/confirmations#create', :as => 'user_confirmation'
get 'confirmation/new' => 'iugu/confirmations#new', :as => 'new_user_confirmation'
get 'confirmation' => 'iugu/confirmations#show', :as => 'show_user_confirmation'