summaryrefslogtreecommitdiff
path: root/lib/opentox.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/opentox.rb')
-rw-r--r--lib/opentox.rb2
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