Rails.application.routes.draw do
  # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
  get    "tasks"         , to: "tasks#index"
  post   "tasks"         , to: "tasks#create"
  get    "tasks/new"     , to: "tasks#new", as: :task_new
  get    "tasks/:id"     , to: "tasks#show", as: :task
  get    "tasks/:id/edit", to: "tasks#edit", as: :task_edit
  patch  "tasks/:id"     , to: "tasks#update"
  delete "tasks/:id"     , to: "tasks#destroy"
end
