|
|
@ -7,6 +7,7 @@ Rails.application.routes.draw do
|
|
|
|
get '/creatures/:id', to: 'creatures#show'
|
|
|
|
get '/creatures/:id', to: 'creatures#show'
|
|
|
|
post '/creatures', to: 'creatures#create'
|
|
|
|
post '/creatures', to: 'creatures#create'
|
|
|
|
put '/creatures/:id', to: 'creatures#update'
|
|
|
|
put '/creatures/:id', to: 'creatures#update'
|
|
|
|
|
|
|
|
delete '/creatures/:id', to: 'creatures#destroy'
|
|
|
|
|
|
|
|
|
|
|
|
# Defines the root path route ("/")
|
|
|
|
# Defines the root path route ("/")
|
|
|
|
root 'home#welcome'
|
|
|
|
root 'home#welcome'
|
|
|
|