Sprankelprachtig aan/afmeldsysteem

routes.rb 1.0KB

12345678910111213141516171819202122232425262728293031323334
  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 'reset_password', to: 'authentication#reset_password_form'
  11. post 'reset_password', to: 'authentication#reset_password'
  12. get 'logout', to: 'authentication#logout_confirm'
  13. delete 'logout', to: 'authentication#logout'
  14. resources :people
  15. resources :groups do
  16. resources :members
  17. resources :activities do
  18. put 'presence', to: 'activities#presence', on: :member
  19. patch 'presence', to: 'activities#presence', on: :member
  20. end
  21. end
  22. get 'my_groups', to: 'groups#user_groups', as: :user_groups
  23. # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
  24. end