Sha256: 4c7965ed6dab269abab74005d46cd230c9a692143b06f815361052ef5faac273

Contents?: true

Size: 762 Bytes

Versions: 4

Compression:

Stored size: 762 Bytes

Contents

# Match IDs with dots in them
id_pattern = /[^\/]+/

ResqueWeb::Engine.routes.draw do

  resource  :overview,  :only => [:show], :controller => :overview
  resources :working,   :only => [:index]
  resources :queues,    :only => [:index,:show,:destroy], :constraints => {:id => id_pattern}
  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/:action',     :controller => :stats
  get '/stats/:action/:id', :controller => :stats, :constraints => {:id => id_pattern}

  root :to => 'overview#show'

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
resque-web-0.0.4 config/routes.rb
resque-web-0.0.3 config/routes.rb
resque-web-0.0.2 config/routes.rb
resque-web-0.0.1 config/routes.rb