From fc54632a08ac7079a46ecb9f34a514a23c07717a Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Wed, 12 Aug 2020 14:45:45 +0800 Subject: [PATCH] Change --- config/routes.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 9acd38ca..7cd4a88f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -4,7 +4,7 @@ Rails.application.routes.draw do require 'admin_constraint' # mount Sidekiq::Web => '/sidekiq', :constraints => AdminConstraint.new - mount Sidekiq::Web => '/admins/sidekiq' + # Serve websocket cable requests in-process mount ActionCable.server => '/cable' @@ -414,6 +414,7 @@ Rails.application.routes.draw do end namespace :admins do + mount Sidekiq::Web => '/sidekiq' get '/', to: 'dashboards#index' resources :project_statistics, only: [:index] do collection do