From 741701df8ff0861b3607a30e9aaf8b8a0c303cdf Mon Sep 17 00:00:00 2001 From: gebele Date: Thu, 13 Jun 2019 15:28:59 +0000 Subject: update with API --- lib/swagger.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/swagger.rb') diff --git a/lib/swagger.rb b/lib/swagger.rb index acb2ad0..2c3ea87 100644 --- a/lib/swagger.rb +++ b/lib/swagger.rb @@ -1,5 +1,3 @@ -get "/" do - response['Content-Type'] = "text/html" - index_file = File.join(ENV['HOME'],"swagger-ui/dist/index.html") - File.read(index_file) +get "/swagger" do + redirect("/api") end -- cgit v1.2.3