|
35 | 35 | #
|
36 | 36 | # These are deprecated but we still want to support the incoming routes, in order to give existing stores an upgrade path.
|
37 | 37 | # Will be removed at the next major release of solidus_auth_devise.
|
38 |
| - get '/user/spree_user/password/edit' => 'user_passwords#edit', as: :deprecated_edit_spree_user_password |
39 |
| - get '/password/change' => 'user_passwords#edit', as: :edit_spree_user_password |
40 |
| - get '/user/spree_user/password/new' => 'user_passwords#new', as: :deprecated_new_spree_user_password |
41 |
| - get '/password/recover' => 'user_passwords#new', as: :new_spree_user_password |
42 |
| - match '/user/spree_user/password' => 'user_passwords#update', via: [:patch, :put], as: :deprecated_spree_user_password |
43 |
| - put '/password/change' => 'user_passwords#update', as: :spree_user_password |
44 |
| - post '/user/spree_user/password' => 'user_passwords#create', as: nil |
| 38 | + with_options deprecated_route: true do |
| 39 | + get '/user/spree_user/password/edit' => 'user_passwords#edit', as: :deprecated_edit_spree_user_password |
| 40 | + get '/password/change' => 'user_passwords#edit', as: :edit_spree_user_password |
| 41 | + get '/user/spree_user/password/new' => 'user_passwords#new', as: :deprecated_new_spree_user_password |
| 42 | + get '/password/recover' => 'user_passwords#new', as: :new_spree_user_password |
| 43 | + match '/user/spree_user/password' => 'user_passwords#update', via: [:patch, :put], as: :deprecated_spree_user_password |
| 44 | + put '/password/change' => 'user_passwords#update', as: :spree_user_password |
| 45 | + post '/user/spree_user/password' => 'user_passwords#create', as: nil |
45 | 46 |
|
46 |
| - get '/login' => 'user_sessions#new', as: :new_spree_user_session |
47 |
| - get '/user/spree_user/sign_in' => 'user_sessions#new', as: :deprecated_new_spree_user_session |
48 |
| - match '/user/spree_user/logout' => 'user_sessions#destroy', via: Devise.sign_out_via, as: :deprecated_destroy_spree_user_session |
49 |
| - match '/logout' => 'user_sessions#destroy', via: Devise.sign_out_via, as: :destroy_spree_user_session |
50 |
| - post '/user/spree_user/sign_in' => 'user_sessions#create', as: :deprecated_spree_user_session |
51 |
| - post '/login' => 'user_sessions#create', as: :spree_user_session |
| 47 | + get '/login' => 'user_sessions#new', as: :new_spree_user_session |
| 48 | + get '/user/spree_user/sign_in' => 'user_sessions#new', as: :deprecated_new_spree_user_session |
| 49 | + match '/user/spree_user/logout' => 'user_sessions#destroy', via: Devise.sign_out_via, as: :deprecated_destroy_spree_user_session |
| 50 | + match '/logout' => 'user_sessions#destroy', via: Devise.sign_out_via, as: :destroy_spree_user_session |
| 51 | + post '/user/spree_user/sign_in' => 'user_sessions#create', as: :deprecated_spree_user_session |
| 52 | + post '/login' => 'user_sessions#create', as: :spree_user_session |
52 | 53 |
|
53 |
| - get '/user/spree_user/sign_up' => 'user_registrations#new', as: :deprecated_new_spree_user_registration |
54 |
| - get '/signup' => 'user_registrations#new', as: :new_spree_user_registration |
55 |
| - post '/user/spree_user' => 'user_registrations#create', as: nil |
56 |
| - get '/user/spree_user/cancel' => 'user_registrations#cancel', as: :cancel_spree_user_registration |
57 |
| - get '/user/spree_user/edit' => 'user_registrations#edit', as: :edit_spree_user_registration |
58 |
| - delete '/user/spree_user' => 'user_registrations#destroy', as: nil |
59 |
| - match '/user/spree_user' => 'user_registrations#update', as: :spree_user_registration, via: [:patch, :put] |
| 54 | + get '/user/spree_user/sign_up' => 'user_registrations#new', as: :deprecated_new_spree_user_registration |
| 55 | + get '/signup' => 'user_registrations#new', as: :new_spree_user_registration |
| 56 | + post '/user/spree_user' => 'user_registrations#create', as: nil |
| 57 | + get '/user/spree_user/cancel' => 'user_registrations#cancel', as: :cancel_spree_user_registration |
| 58 | + get '/user/spree_user/edit' => 'user_registrations#edit', as: :edit_spree_user_registration |
| 59 | + delete '/user/spree_user' => 'user_registrations#destroy', as: nil |
| 60 | + match '/user/spree_user' => 'user_registrations#update', as: :spree_user_registration, via: [:patch, :put] |
| 61 | + end |
60 | 62 | end
|
61 | 63 |
|
62 | 64 | get '/checkout/registration', to: 'checkout#registration', as: :checkout_registration
|
|
0 commit comments