Sprankelprachtig aan/afmeldsysteem

routes.rb 1.1KB

12345678910111213141516171819202122232425262728293031323334353637
  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. resources :members
  19. resources :activities do
  20. put 'presence', to: 'activities#presence', on: :member
  21. patch 'presence', to: 'activities#presence', on: :member
  22. end
  23. end
  24. get 'my_groups', to: 'groups#user_groups', as: :user_groups
  25. # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
  26. end