This commit is contained in:
sylor_huang@126.com 2020-08-12 14:45:45 +08:00
parent 5963af5c7b
commit fc54632a08
1 changed files with 2 additions and 1 deletions

View File

@ -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