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 9ac60a3 commit e8ccbc0Copy full SHA for e8ccbc0
lib/grape-swagger.rb
@@ -26,7 +26,7 @@ module SwaggerRouting
26
def combine_routes(app, doc_klass)
27
app.routes.each do |route|
28
route_path = route.path
29
- route_match = route_path.split(/^.*?#{route.prefix.to_s}/).last
+ route_match = route_path.split(/^.*?#{route.prefix}/).last
30
next unless route_match
31
32
route_match = route_match.match('\/([\w|-]*?)[\.\/\(]') || route_match.match('\/([\w|-]*)$')
0 commit comments