Method: Grape::Router#recognize_path

Defined in:
lib/grape/router.rb

#recognize_path(input) ⇒ Object



55
56
57
58
59
60
# File 'lib/grape/router.rb', line 55

def recognize_path(input)
  any = with_optimization { greedy_match?(input) }
  return if any == default_response

  any.endpoint
end