diff options
author | gebele <gebele@in-silico.ch> | 2019-06-13 15:28:59 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2019-06-13 15:28:59 +0000 |
commit | 741701df8ff0861b3607a30e9aaf8b8a0c303cdf (patch) | |
tree | 40fd2c6ca4eb85f3077859d9a808d01ec5aa8ece /lib/swagger.rb | |
parent | f37f0b654b36b66c133755c01f033859c35197f6 (diff) |
update with API
Diffstat (limited to 'lib/swagger.rb')
-rw-r--r-- | lib/swagger.rb | 6 |
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 |