Method: Sidekiq::Web::Route#match

Defined in:
lib/sidekiq/web/router.rb

#match(request_method, path) ⇒ Object



80
81
82
83
84
85
86
87
88
# File 'lib/sidekiq/web/router.rb', line 80

def match(request_method, path)
  case matcher
  when String
    EMPTY if path == matcher
  else
    path_match = path.match(matcher)
    path_match&.named_captures&.transform_keys(&:to_sym)
  end
end