```ruby
TariffWeb::Application.routes.draw do
  match "/search" => "search#search", via: :get, as: :perform_search

  resources :sections, only: [:index, :show]
  resources :chapters, only: [:index, :show]
  resources :headings, only: [:index, :show]
  resources :commodities, only: [:index, :show]

  root to: 'pages#index'
end
```

Use the APP_SLUG as we're using a prefix route
user
```ruby
TariffWeb::Application.routes.draw do
  scope :path => "#{APP_SLUG}" do
    get "/" => "pages#index"
    match "/search" => "search#search", via: :get, as: :perform_search

    resources :sections, only: [:index, :show]
    resources :chapters, only: [:index, :show]
    resources :headings, only: [:index, :show]
    resources :commodities, only: [:index, :show]
  end

  root :to => redirect("/#{APP_SLUG}", :status => 302)
end
```
assistant