File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1+ require 'sidekiq/web'
2+
13Rails . application . routes . draw do
24 Spree ::Core ::Engine . add_routes do
35 # Admin authentication
2527 devise_for :admin_users , class_name : "Spree::AdminUser"
2628 devise_for :users , class_name : "Spree::User"
2729
30+ # Sidekiq Web UI
31+ authenticate Spree . admin_user_class . model_name . singular_route_key . to_sym , -> ( admin_user ) { admin_user . spree_admin? } do
32+ mount Sidekiq ::Web => "/sidekiq" # access it at http://localhost:3000/sidekiq
33+ end
34+
2835 # Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
2936 # Can be used by load balancers and uptime monitors to verify that the app is live.
3037 get "up" => "rails/health#show" , as : :rails_health_check
38+
39+ root to : redirect ( '/admin' )
3140end
You can’t perform that action at this time.
0 commit comments