summaryrefslogtreecommitdiff
path: root/lib/swagger.rb
blob: acb2ad0bb4cbbc83400a69c301dff81ea0a5cbd3 (plain)
1
2
3
4
5
get "/" do
  response['Content-Type'] = "text/html"
  index_file = File.join(ENV['HOME'],"swagger-ui/dist/index.html")
  File.read(index_file)
end