We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 717ae8b commit 7489bc9Copy full SHA for 7489bc9
lib/grape/router.rb
@@ -103,9 +103,9 @@ def transaction(env)
103
neighbor.endpoint
104
) if neighbor && method == 'OPTIONS' && !cascade
105
106
- return neighbor.endpoint.call(env) if neighbor && cascade && match?(input, '*')
107
-
108
route = match?(input, '*')
+ return neighbor.endpoint.call(env) if neighbor && cascade && route
+
109
if route
110
response = process_route(route, env)
111
return response if response && !(cascade = cascade?(response))
0 commit comments