mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 07:16:40 +00:00
First iteration of rspec driven swagger
This commit is contained in:
@@ -3,8 +3,8 @@ module SwaggerRails
|
||||
|
||||
def index
|
||||
@discovery_paths = Hash[
|
||||
SwaggerRails.swagger_docs.map do |name, path|
|
||||
[ name, "#{root_path}#{path}" ]
|
||||
SwaggerRails.swagger_docs.map do |path, doc|
|
||||
[ "#{root_path}#{path}", doc[:info][:title] ]
|
||||
end
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user