Qujo::Engine.routes.draw do resources :jobs do post "accept", on: :member post "refresh", on: :member get "resque", on: :collection if defined?(Resque) get "status", on: :collection get "errors", on: :collection get "all", on: :collection end if defined?(Resque) mount Resque::Server.new, :at => "/resque" end end