Sprankelprachtig aan/afmeldsysteem

routes.rb 770B

123456789101112131415161718192021222324252627
  1. Rails.application.routes.draw do
  2. get 'dashboard/home'
  3. root to: 'dashboard#home'
  4. get 'login', to: 'authentication#login_form', as: :login
  5. post 'login', to: 'authentication#login'
  6. get 'register', to: 'authentication#create_password_form'
  7. post 'register', to: 'authentication#create_password'
  8. get 'forgot', to: 'authentication#forgotten_password_form'
  9. post 'forgot', to: 'authentication#forgotten_password'
  10. get 'logout', to: 'authentication#logout_confirm'
  11. delete 'logout', to: 'authentication#logout'
  12. resources :people
  13. resources :groups do
  14. resources :members
  15. end
  16. get 'my_groups', to: 'groups#user_groups', as: :user_groups
  17. # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
  18. end