Sha256: ea03c2fb8d97a84738873dafa3af97b60f8c218eee63f078ecc28c915a3e645d
Contents?: true
Size: 973 Bytes
Versions: 7
Compression:
Stored size: 973 Bytes
Contents
# Match IDs with dots in them id_pattern = /[^\/]+/ ResqueWeb::Engine.routes.draw do ResqueWeb::Plugins.plugins.each do |p| mount p::Engine => p.engine_path end resource :overview, :only => [:show], :controller => :overview resources :working, :only => [:index] resources :queues, :only => [:index,:show,:destroy], :constraints => {:id => id_pattern} do member do put 'clear' end end resources :workers, :only => [:index,:show], :constraints => {:id => id_pattern} resources :failures, :only => [:show,:index,:destroy] do member do put 'retry' end collection do put 'retry_all' delete 'destroy_all' end end get '/stats' => 'stats#index' get '/stats/resque' => 'stats#resque' get '/stats/redis' => 'stats#redis' get '/stats/keys' => 'stats#keys' get '/stats/keys/:id' => 'stats#keys', :constraints => { :id => id_pattern }, as: :keys_statistic root :to => 'overview#show' end
Version data entries
7 entries across 7 versions & 2 rubygems