BeanstalkApi::Engine.routes.draw do get '/' => 'tasks#overall_statistics' resources :jobs, only: [ :show, :destroy ] resources :tubes, only: [ :index, :show ] do member do get 'ready' get 'delayed' get 'buried' delete 'one_job' delete 'all_jobs' delete 'move/:to_tube' => :move delete 'worker' get 'kick(/:bound)' => :kick end end end