diff --git a/app/views/admins/shared/_sidebar.html.erb b/app/views/admins/shared/_sidebar.html.erb
index 7287c034..de56a547 100644
--- a/app/views/admins/shared/_sidebar.html.erb
+++ b/app/views/admins/shared/_sidebar.html.erb
@@ -41,7 +41,7 @@
<% end %>
- <%= sidebar_item('/sidekiq', '定时任务', icon: 'bell', controller: 'root') %>
+ <%= sidebar_item('/admins/sidekiq', '定时任务', icon: 'bell', controller: 'root') %>
<%= sidebar_item('/', '返回主站', icon: 'sign-out', controller: 'root') %>
diff --git a/config/routes.rb b/config/routes.rb
index 80ca9501..4aa1652f 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -3,7 +3,7 @@ Rails.application.routes.draw do
require 'sidekiq/web'
require 'admin_constraint'
- mount Sidekiq::Web => '/sidekiq', :constraints => AdminConstraint.new
+ # mount Sidekiq::Web => '/sidekiq', :constraints => AdminConstraint.new
# 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