From e3d75f576f46ff1b8bda3c32b58ac3bc24d737f7 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Thu, 14 May 2020 18:23:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9sidekiq=E7=9A=84=E6=9D=83?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/routes.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index f0133696b..4d122fd96 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,8 +1,10 @@ Rails.application.routes.draw do - + require 'sidekiq/web' + require 'admin_constraint' + # mount Sidekiq::Web => '/sidekiq' - # mount Sidekiq::Web => '/sidekiq', :constraints => AdminConstraint.new + mount Sidekiq::Web => '/sidekiq', :constraints => AdminConstraint.new get 'attachments/download/:id', to: 'attachments#show' get 'attachments/download/:id/:filename', to: 'attachments#show' @@ -381,10 +383,6 @@ Rails.application.routes.draw do end namespace :admins do - require 'sidekiq/web' - require 'admin_constraint' - mount Sidekiq::Web => '/sidekiq' - get '/', to: 'dashboards#index' resources :project_statistics, only: [:index] do collection do