From e9335c8281170c74029d0fdcfef179241f962151 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Mon, 10 Aug 2026 15:10:30 +0800 Subject: [PATCH] fixed sidekiq admin --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 791004bf3..dbe3788ab 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -819,7 +819,7 @@ Rails.application.routes.draw do end namespace :admins do - mount Sidekiq::Web => '/sidekiq' + mount Sidekiq::Web => '/sidekiq', :constraints => AdminConstraint.new get '/', to: 'dashboards#index' get '/baidu_tongji', to: 'dashboards#baidu_tongji' get '/baidu_tongji_auth', to: 'dashboards#baidu_tongji_auth'