Rails.application.routes.draw do
  # Devise
  devise_for :admin_users, path: :admin

  root 'pages#index'

  namespace :admin do
    root 'dashboard#index'

    resources :sites
  end
end

Rails.application.routes.draw do
  # Devise
  devise_for :admin_users, path: :admin

  root 'pages#index'

  namespace :admin do
    root 'dashboard#index'

    constraints ->(_req) { Apartment::Tenant.current == 'public' } do
      resources :sites
    end
  end
end

Add constraint for system only resources in admin
Add constraint for system only resources in admin
