```ruby
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
```

Make the All Foods list the homepage
user
```ruby
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
```
assistant