Method: Grape::Router#recognize_path

Defined in:
lib/grape/router.rb

#recognize_path(input) ⇒ Object



67
68
69
70
71
# File 'lib/grape/router.rb', line 67

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