```ruby
Photeasy::Application.routes.draw do
  # Index
  root to: 'high_voltage/pages#show', id: 'index'

  # Authentication
  devise_for :users, controllers: { omniauth_callbacks: 'users/omniauth_callbacks' }
  devise_for :admin_users, ActiveAdmin::Devise.config

  # Administration
  ActiveAdmin.routes(self)

  # API
  namespace :api, format: true, constraints: { format: :json } do
    namespace :v1 do
      resources :photos, only: [:index]
      resources :users, only: [:show]
    end
  end

  # Catch All
  match '*path' => 'high_voltage/pages#show', id: 'index'
end
```

Add condition to catch all route for asset requests.
user
```ruby
Photeasy::Application.routes.draw do
  # Index
  root to: 'high_voltage/pages#show', id: 'index'

  # Authentication
  devise_for :users, controllers: { omniauth_callbacks: 'users/omniauth_callbacks' }
  devise_for :admin_users, ActiveAdmin::Devise.config

  # Administration
  ActiveAdmin.routes(self)

  # API
  namespace :api, format: true, constraints: { format: :json } do
    namespace :v1 do
      resources :photos, only: [:index]
      resources :users, only: [:show]
    end
  end

  # Catch All
  match '*path' => 'high_voltage/pages#show', id: 'index', constraints: lambda { |request| !(request.path =~ /^\/assets/) }
end
```
assistant