mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-17 02:05:58 +08:00
Change
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
Rails.application.routes.draw do
|
||||
|
||||
|
||||
require 'sidekiq/web'
|
||||
require 'admin_constraint'
|
||||
|
||||
mount Sidekiq::Web => '/sidekiq'
|
||||
# mount Sidekiq::Web => '/sidekiq', :constraints => AdminConstraint.new
|
||||
|
||||
# Serve websocket cable requests in-process
|
||||
mount ActionCable.server => '/cable'
|
||||
@@ -36,6 +36,7 @@ Rails.application.routes.draw do
|
||||
resources :sync_forge, only: [:create] do
|
||||
collection do
|
||||
post :sync_users
|
||||
post :sync_range_projects
|
||||
end
|
||||
end
|
||||
resources :composes do
|
||||
@@ -430,6 +431,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
|
||||
|
||||
Reference in New Issue
Block a user