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 71c5d71 commit 8f8f95aCopy full SHA for 8f8f95a
lib/grape-swagger.rb
@@ -11,7 +11,7 @@ def mount(mounts)
11
original_mount mounts
12
@combined_routes ||= {}
13
mounts::routes.each do |route|
14
- resource = route.route_path.match('\/(.*?)[\.\/\(]').captures.first || '/'
+ resource = route.route_path.match('\/(\w*?)[\.\/\(]').captures.first || '/'
15
@combined_routes[resource.downcase] ||= []
16
@combined_routes[resource.downcase] << route
17
end
0 commit comments