diff options
Diffstat (limited to 'lib/swagger.rb')
-rw-r--r-- | lib/swagger.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/swagger.rb b/lib/swagger.rb index 916439e..f6b42b2 100644 --- a/lib/swagger.rb +++ b/lib/swagger.rb @@ -3,6 +3,6 @@ set :public_folder, File.join("/home/ist/swagger-ui/dist/") get "/" do response['Content-Type'] = "text/html" index_file = File.join("/home/ist/swagger-ui/dist/index.html") - #bad_request_error "API Documentation in Swagger JSON is not implemented.", uri("/#{SERVICE}/api") unless File.exists?(index_file) + bad_request_error "API Documentation in Swagger JSON is not implemented.", uri("/#{SERVICE}/api") unless File.exists?(index_file) File.read(index_file) end |