|
|
@ -5,6 +5,7 @@ Rails.application.routes.draw do
|
|
|
|
# CRUD Créatures
|
|
|
|
# CRUD Créatures
|
|
|
|
get '/creatures', to: 'creatures#index'
|
|
|
|
get '/creatures', to: 'creatures#index'
|
|
|
|
get '/creatures/:id', to: 'creatures#show'
|
|
|
|
get '/creatures/:id', to: 'creatures#show'
|
|
|
|
|
|
|
|
post '/creatures', to: 'creatures#create'
|
|
|
|
|
|
|
|
|
|
|
|
# Defines the root path route ("/")
|
|
|
|
# Defines the root path route ("/")
|
|
|
|
root 'home#welcome'
|
|
|
|
root 'home#welcome'
|
|
|
|