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 b4c0fbd commit 948b0deCopy full SHA for 948b0de
lib/grape-swagger/doc_methods/path_string.rb
@@ -19,7 +19,7 @@ def build(route, options = {})
19
route.path.sub!('/{version}', '')
20
end
21
22
- route.path = "#{GrapeSwagger::DocMethods::OptionalObject.build(:base_path, options)}#{route.path}" if options[:add_base_path]
+ route.path.prepend(GrapeSwagger::DocMethods::OptionalObject.build(:base_path, options)) if options[:add_base_path]
23
24
[item, route.path.start_with?('/') ? route.path : "/#{route.path}"]
25
0 commit comments