Sprankelprachtig aan/afmeldsysteem

routes.rb 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 'confirm', to: 'authentication#confirm_account_form'
  9. post 'confirm', to: 'authentication#confirm_account'
  10. get 'forgot', to: 'authentication#forgotten_password_form'
  11. post 'forgot', to: 'authentication#forgotten_password'
  12. get 'reset_password', to: 'authentication#reset_password_form'
  13. post 'reset_password', to: 'authentication#reset_password'
  14. get 'logout', to: 'authentication#logout_confirm'
  15. delete 'logout', to: 'authentication#logout'
  16. get 'people/mass_new', to: 'people#mass_new'
  17. post 'people/mass_new', to: 'people#mass_create'
  18. resources :people
  19. resources :groups do
  20. get 'invite', to: 'members#invite'
  21. post 'invite', to: 'members#process_invite'
  22. get 'mass_add', to: 'groups#mass_add_members'
  23. post 'mass_add', to: 'groups#process_mass_add_members'
  24. resources :members do
  25. post 'promote', to: 'members#promote', on: :member
  26. post 'demote', to: 'members#demote', on: :member
  27. end
  28. resources :activities do
  29. put 'presence', to: 'activities#presence', on: :member
  30. patch 'presence', to: 'activities#presence', on: :member
  31. end
  32. end
  33. get 'my_groups', to: 'groups#user_groups', as: :user_groups
  34. # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
  35. end