diff options
author | rautenberg <rautenberg@in-silico.ch> | 2015-05-21 13:39:28 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2015-05-21 13:39:28 +0200 |
commit | 5aafb77fdb5c456feb7ee8b0a25a7a35935b7d3d (patch) | |
tree | d41e1e2e6047a711199c1a97af737230d8a06e0a | |
parent | f6638690a0d0f474011c4d63f75607983b5957dd (diff) |
add generic and unique route /SERVICE/api/SERVICE.json to swagger.json file
-rw-r--r-- | lib/opentox.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/opentox.rb b/lib/opentox.rb index 6afcd35..ebd2338 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -199,7 +199,7 @@ module OpenTox # generic route to swagger API file get "/#{SERVICE}/api/#{SERVICE}.json" do response['Content-Type'] = "application/json" - api_file = File.join('api', '#{SERVICE}.json') + api_file = File.join("api", "#{SERVICE}.json") bad_request_error "API Documentation in Swagger JSON is not implemented.", uri("/#{SERVICE}/api") unless File.exists?(api_file) File.read(api_file) end |