Rails.application.routes.draw do
  root 'lists#index'
  resources :lists, only: [:show, :index, :edit, :update]

  resources :foods, only: [:new, :create, :edit, :update, :destroy]
  get "search" => 'foods#search'

  resource :session, only: [:new, :create, :destroy]
end

Rails.application.routes.draw do
  root 'lists#show', id: AllFoodsList::ID
  resources :lists, only: [:show, :index, :edit, :update]

  resources :foods, only: [:new, :create, :edit, :update, :destroy]
  get "search" => 'foods#search'

  resource :session, only: [:new, :create, :destroy]
end

Make the All Foods list the homepage
Make the All Foods list the homepage
