<repo_name>kaikuenne/rails-task-manager<file_sep>/config/routes.rb
Rails.application.routes.draw do
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html

  #index all tasks
  get 'tasks', to: 'tasks#index', as: :index

  #show one task
  get 'tasks/:id', to: 'tasks#show', as: :task

  #create a task
  get 'new', to: 'tasks#new', as: :new_task
  post 'tasks', to: 'tasks#create'

  #update a task
  get 'tasks/:id/edit', to: 'tasks#edit', as: :edit_task
  patch 'tasks/:id', to: 'tasks#update'

  #delete a task
  delete 'tasks/:id', to: 'tasks#destroy', as: :delete_task

end
