diff options
author | rautenberg <rautenberg@in-silico.ch> | 2015-06-18 16:49:23 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2015-06-18 16:49:23 +0200 |
commit | 8729c6ee446e4edb2efde14d2fe0249ab2a29879 (patch) | |
tree | 63de0f6bfc4b54baec113d20978a5aa44ccb6410 /application.rb | |
parent | 45ddfb793631acb1ef4b10cbb8f6242e0d9dc1eb (diff) |
hotfix for wrong PATH_INFO in request env /algorithm/api/algorithm.json is /api/algorithm.json part 2
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application.rb b/application.rb index f2f2fab..239a37d 100644 --- a/application.rb +++ b/application.rb @@ -41,7 +41,7 @@ module OpenTox end # generic route to swagger API file - hotfix because opentox-server route do not work - get "/algorithm/api/algorithm.json" do + get "/api/algorithm.json" do response['Content-Type'] = "application/json" api_file = File.join("api", "algorithm.json") bad_request_error "API Documentation in Swagger JSON is not implemented.", uri("/algorithm/api") unless File.exists?(api_file) |