summaryrefslogtreecommitdiff
path: root/lib/swagger.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/swagger.rb')
-rw-r--r--lib/swagger.rb6
1 files changed, 2 insertions, 4 deletions
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