Sprankelprachtig aan/afmeldsysteem

routes.rb 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. resources :people
  17. resources :groups do
  18. get 'invite', to: 'members#invite'
  19. post 'invite', to: 'members#process_invite'
  20. resources :members do
  21. post 'promote', to: 'members#promote', on: :member
  22. post 'demote', to: 'members#demote', on: :member
  23. end
  24. resources :activities do
  25. put 'presence', to: 'activities#presence', on: :member
  26. patch 'presence', to: 'activities#presence', on: :member
  27. end
  28. end
  29. get 'my_groups', to: 'groups#user_groups', as: :user_groups
  30. # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
  31. end