module Lowkiq::Web::Api
Constants
- ACTIONS
- GET
- POST
Public Class Methods
call(env)
click to toggle source
# File lib/lowkiq/web/api.rb, line 130 def self.call(env) req = Rack::Request.new env ACTIONS.each do |action| resp = action.call req return resp if resp end [404, {}, ["not found"]] end
match_to_worker(match)
click to toggle source
# File lib/lowkiq/web/api.rb, line 126 def self.match_to_worker(match) Lowkiq.workers.find { |w| w.name == match[:worker] } end