pg_engine/config/routes.rb in pg_rails-7.6.20 vs pg_engine/config/routes.rb in pg_rails-7.6.21.pre.1

- old
+ new

@@ -16,30 +16,40 @@ get 'login_as', to: 'public#login_as' devise_for :users, controllers: { confirmations: 'users/confirmations', - registrations: 'users/registrations' + registrations: 'users/registrations', + invitations: 'users/invitations' }, failure_app: PgEngine::DeviseFailureApp + namespace :users, path: 'u' do + post 'notifications/mark_as_seen', to: 'notifications#mark_as_seen' + post 'notifications/mark_as_unseen', to: 'notifications#mark_as_unseen' + get 'date_jumper/jump' + pg_resource(:accounts, path: 'espacios', only: [:index, :show, :new, :create, :edit, :update]) do + member do + put :update_invitation + end + end + + root to: 'accounts#index' + end + + namespace :tenant, path: 'u/t(/:tid)' do + pg_resource(:user_accounts, only: [:index, :show, :edit, :update, :destroy]) scope controller: 'inline_edit', path: 'inline', as: :inline do get 'edit' get 'show' end get 'dashboard', to: 'dashboard#dashboard' - post 'notifications/mark_as_seen', to: 'notifications#mark_as_seen' - post 'notifications/mark_as_unseen', to: 'notifications#mark_as_unseen' - get 'date_jumper/jump' - scope controller: 'account_switcher', path: 'switcher' do - get '', action: 'list', as: 'account_switcher' - post ':user_account_id', action: 'switch', as: 'account_switch' - end - pg_resource(:accounts, path: 'cuentas', only: [:show]) - # get 'account', to: 'accounts#show' + # get '/u', to: 'users/dashboard#dashboard', as: :users_root + root to: 'dashboard#dashboard' end - get '/u', to: 'users/dashboard#dashboard', as: :users_root + # root to: 'users/accounts#index' + root to: redirect('/u') namespace :admin, path: 'a' do pg_resource(:emails) pg_resource(:simple_user_notifiers) pg_resource(:email_logs) do