blob: efe1c9d2b561185ac2f68367aa2cd2753fa990e9 (
plain)
1
2
3
4
5
6
|
get "/" do
response['Content-Type'] = "text/html"
index_file = File.join(ENV['HOME'],"swagger-ui/dist/index.html")
bad_request_error "API Documentation in Swagger JSON is not implemented." unless File.exists?(index_file)
File.read(index_file)
end
|