Sprankelprachtig aan/afmeldsysteem

routes.rb 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. get 'activities/mass_new', to: 'activities#mass_new'
  29. post 'activities/mass_new', to: 'activities#mass_create'
  30. resources :activities do
  31. post 'change_organizer', to: 'activities#change_organizer'
  32. put 'presence', to: 'activities#presence', on: :member
  33. patch 'presence', to: 'activities#presence', on: :member
  34. end
  35. end
  36. get 'my_groups', to: 'groups#user_groups', as: :user_groups
  37. # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
  38. end