pg_engine/config/routes.rb in pg_rails-7.6.0 vs pg_engine/config/routes.rb in pg_rails-7.6.1
- old
+ new
@@ -19,10 +19,11 @@
devise_for :users, controllers: {
confirmations: 'users/confirmations',
registrations: 'users/registrations'
}, failure_app: PgEngine::DeviseFailureApp
namespace :users, path: 'u' do
+ 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'
@@ -31,10 +32,10 @@
pg_resource(:accounts, path: 'cuentas', only: [:show])
# get 'account', to: 'accounts#show'
end
- get '/u', to: 'users#home', as: :users_root
+ get '/u', to: 'users/dashboard#dashboard', as: :users_root
namespace :admin, path: 'a' do
pg_resource(:emails)
pg_resource(:eventos)
pg_resource(:email_logs) do