Module: Sidekiq::Undertaker::WebExtension
- Defined in:
- lib/sidekiq/undertaker/web_extension.rb,
lib/sidekiq/undertaker/web_extension/api_helpers.rb
Defined Under Namespace
Modules: APIHelpers
Class Method Summary collapse
-
.registered(app) ⇒ Object
rubocop:disable Metrics/MethodLength.
Class Method Details
.registered(app) ⇒ Object
rubocop:disable Metrics/MethodLength
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/sidekiq/undertaker/web_extension.rb', line 9 def self.registered(app) app.helpers APIHelpers app.get "/undertaker/filter" do show_filter end app.get "/undertaker/filter/:job_class/:bucket_name" do show_filter_by_job_class_bucket_name end app.get "/undertaker/filter/:job_class/:error_class/:bucket_name" do show_filter_by_job_class_error_class_bucket_name end app.get "/undertaker/morgue/:job_class/:error_class/:error_msg/:bucket_name" do show_undertaker_by_job_class_error_class_error_msg_bucket_name end app.post "/undertaker/morgue" do post_undertaker end app.post "/undertaker/morgue/:job_class/:error_class/:error_msg/:bucket_name/delete" do post_undertaker_job_class_error_class_error_msg_bucket_name_delete end app.post "/undertaker/morgue/:job_class/:error_class/:error_msg/:bucket_name/retry" do post_undertaker_job_class_error_class_error_msg_bucket_name_retry end app.post "/undertaker/morgue/:job_class/:error_class/:error_msg/:bucket_name/export" do post_undertaker_job_class_error_class_error_msg_bucket_name_export end app.post "/undertaker/import_jobs" do post_import_jobs end end |