require 'sidekiq/web'

Rails.application.routes.draw do
  constraints subdomain: 'sidekiq' do
    mount Sidekiq::Web, at: '/sidekiq'
  end

  root to: 'users#index'

  resources :users, only: [] do
    collection do
      get :orgs
    end
  end

  resources :repositories, only: :index
end

require 'sidekiq/web'

Rails.application.routes.draw do
  root to: 'users#index'

  mount Sidekiq::Web, at: '/sidekiq'

  resources :users, only: [] do
    collection do
      get :orgs
    end
  end

  resources :repositories, only: :index
end

Revert "Mount sidekiq on subdomain"
Revert "Mount sidekiq on subdomain"

This reverts commit cb34b0a74be80d90fc22bd08556024818c53427f.
