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.
15 lines
512 B
15 lines
512 B
Rails.application.routes.draw do
|
|
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
|
|
get '/dice-rolls/:dice_type/(:rolls_count)', to: "dice_rolls#rolls"
|
|
|
|
# CRUD Créatures
|
|
get '/creatures', to: 'creatures#index'
|
|
get '/creatures/:id', to: 'creatures#show'
|
|
post '/creatures', to: 'creatures#create'
|
|
put '/creatures/:id', to: 'creatures#update'
|
|
delete '/creatures/:id', to: 'creatures#destroy'
|
|
|
|
# Defines the root path route ("/")
|
|
root 'home#welcome'
|
|
end
|