You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
567 B
16 lines
567 B
Rails.application.routes.draw do
|
|
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
|
|
get '/people', to: 'people#index'
|
|
get '/people/:id', to: 'people#show'
|
|
post '/people', to: 'people#create'
|
|
delete '/people/:id', to: 'people#delete'
|
|
put '/people/:id', to: 'people#update'
|
|
|
|
get '/locations', to: 'locations#index'
|
|
get '/locations/:id', to: 'locations#show'
|
|
post '/locations', to: 'locations#create'
|
|
delete '/locations/:id', to: 'locations#delete'
|
|
put '/locations/:id', to: 'locations#update'
|
|
|
|
end
|