lib/nexmo/oas/renderer/app.rb in nexmo-oas-renderer-0.2.0 vs lib/nexmo/oas/renderer/app.rb in nexmo-oas-renderer-0.2.1
- old
+ new
@@ -70,10 +70,10 @@
not_found erb :'static/404', layout: layout
end
unless defined?(NexmoDeveloper::Application)
get '/' do
- prefix = "#{API.oas_path}definitions"
+ prefix = "#{API.oas_path}/definitions"
@definitions = Dir.glob("#{prefix}/**/*.yml").map do |d|
d.gsub("#{prefix}/", '').gsub('.yml', '')
end.sort.reject { |d| d.include? 'common/' }
erb :'api/index', layout: false
end