mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-07-14 22:24:36 +08:00
修改sidekiq的权限
This commit is contained in:
+4
-6
@@ -1,8 +1,10 @@
|
|||||||
Rails.application.routes.draw do
|
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', to: 'attachments#show'
|
||||||
get 'attachments/download/:id/:filename', to: 'attachments#show'
|
get 'attachments/download/:id/:filename', to: 'attachments#show'
|
||||||
@@ -381,10 +383,6 @@ Rails.application.routes.draw do
|
|||||||
end
|
end
|
||||||
|
|
||||||
namespace :admins do
|
namespace :admins do
|
||||||
require 'sidekiq/web'
|
|
||||||
require 'admin_constraint'
|
|
||||||
mount Sidekiq::Web => '/sidekiq'
|
|
||||||
|
|
||||||
get '/', to: 'dashboards#index'
|
get '/', to: 'dashboards#index'
|
||||||
resources :project_statistics, only: [:index] do
|
resources :project_statistics, only: [:index] do
|
||||||
collection do
|
collection do
|
||||||
|
|||||||
Reference in New Issue
Block a user