2015-09-12 15:37:05 -05:00
|
|
|
Rails.application.routes.draw do
|
2015-09-20 13:26:45 -05:00
|
|
|
get 'parents', to: 'parents#index', as: :list_parents
|
2015-10-03 19:16:46 -05:00
|
|
|
get 'parent/new', to: 'parents#new', as: :new_parent
|
|
|
|
post 'parent/new', to: 'parents#add', as: :add_parent
|
|
|
|
get 'parent/edit/:id', to: 'parents#edit', as: :edit_parent
|
|
|
|
get 'parent/:id', to: 'parents#show', as: :parent
|
|
|
|
patch 'parent/:id', to: 'parents#update', as: :update_parent
|
2015-09-12 15:37:05 -05:00
|
|
|
|
2015-10-03 19:16:46 -05:00
|
|
|
post 'parenthood/child/:child', to: 'relationships#add_child', as: :add_parent_to_child
|
2015-10-03 15:15:19 -05:00
|
|
|
post 'parenthood/:parent/', to: 'relationships#add_child', as: :add_parenthood
|
2015-10-03 08:04:16 -05:00
|
|
|
delete 'parenthood/:parent/:child', to: 'relationships#del_child', as: :del_parenthood
|
|
|
|
|
2015-09-24 22:00:26 -05:00
|
|
|
get 'children', to: 'children#index', as: :list_children
|
2015-10-03 19:16:46 -05:00
|
|
|
get 'child/new', to: 'children#new', as: :new_child
|
|
|
|
post 'child/new', to: 'children#add', as: :add_child
|
|
|
|
get 'childdit/:id', to: 'children#edit', as: :edit_child
|
|
|
|
get 'child/:id', to: 'children#show', as: :child
|
|
|
|
patch 'child/:id', to: 'children#update', as: :update_child
|
2015-09-12 15:37:05 -05:00
|
|
|
|
2015-09-20 13:26:45 -05:00
|
|
|
get 'staff', to: 'staff#index', as: :list_staff
|
2015-09-12 15:37:05 -05:00
|
|
|
|
2015-09-20 13:26:45 -05:00
|
|
|
get 'users', to: 'users#index', as: :list_users
|
2015-09-12 15:37:05 -05:00
|
|
|
|
2015-09-20 13:26:45 -05:00
|
|
|
get 'pages', to: 'pages#index', as: :list_pages
|
2015-09-21 20:40:07 -05:00
|
|
|
get 'page/(:id)', to: 'pages#page', as: :page_person
|
|
|
|
post 'page', to: 'pages#send_page', as: :send_page
|
2015-09-12 15:37:05 -05:00
|
|
|
|
|
|
|
root to: 'docs#index'
|
|
|
|
end
|