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